Fix warning
Former-commit-id: 1318b87013c61f7149127eae8e30caf887a6db7b
This commit is contained in:
parent
b0278f5609
commit
a7d378659f
@ -2180,7 +2180,7 @@ const redisDbPersistentData *redisDbPersistentData::createSnapshot(uint64_t mvcc
|
|||||||
{
|
{
|
||||||
serverAssert(GlobalLocksAcquired());
|
serverAssert(GlobalLocksAcquired());
|
||||||
serverAssert(m_refCount == 0); // do not call this on a snapshot
|
serverAssert(m_refCount == 0); // do not call this on a snapshot
|
||||||
bool fNested = false;
|
|
||||||
if (m_spdbSnapshotHOLDER != nullptr)
|
if (m_spdbSnapshotHOLDER != nullptr)
|
||||||
{
|
{
|
||||||
if (mvccCheckpoint <= m_spdbSnapshotHOLDER->mvccCheckpoint)
|
if (mvccCheckpoint <= m_spdbSnapshotHOLDER->mvccCheckpoint)
|
||||||
@ -2189,7 +2189,6 @@ const redisDbPersistentData *redisDbPersistentData::createSnapshot(uint64_t mvcc
|
|||||||
return m_spdbSnapshotHOLDER.get();
|
return m_spdbSnapshotHOLDER.get();
|
||||||
}
|
}
|
||||||
serverLog(LL_WARNING, "Nested snapshot created");
|
serverLog(LL_WARNING, "Nested snapshot created");
|
||||||
fNested = true;
|
|
||||||
}
|
}
|
||||||
auto spdb = std::unique_ptr<redisDbPersistentData>(new (MALLOC_LOCAL) redisDbPersistentData());
|
auto spdb = std::unique_ptr<redisDbPersistentData>(new (MALLOC_LOCAL) redisDbPersistentData());
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user