diff options
author | Gregory Wlodarek <gregory.wlodarek@mongodb.com> | 2020-08-10 10:17:45 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-08-10 17:15:57 +0000 |
commit | cdfa5cb0834dc6d87b38591ae4b326a2439a755e (patch) | |
tree | cc753f6383d41a7b0daa9a30d044063b45922a37 | |
parent | a12299145c35b0cebea60f303613f85472b2915f (diff) | |
download | mongo-cdfa5cb0834dc6d87b38591ae4b326a2439a755e.tar.gz |
SERVER-50029 Initialize 'keysInserted' and 'keysDeleted' in the index catalog
-rw-r--r-- | src/mongo/db/catalog/index_catalog_impl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/catalog/index_catalog_impl.cpp b/src/mongo/db/catalog/index_catalog_impl.cpp index b4cb9408674..018796ceee5 100644 --- a/src/mongo/db/catalog/index_catalog_impl.cpp +++ b/src/mongo/db/catalog/index_catalog_impl.cpp @@ -1470,8 +1470,8 @@ Status IndexCatalogImpl::_updateRecord(OperationContext* const opCtx, iam->prepareUpdate(opCtx, index, oldDoc, newDoc, recordId, options, &updateTicket); - int64_t keysInserted; - int64_t keysDeleted; + int64_t keysInserted = 0; + int64_t keysDeleted = 0; auto status = Status::OK(); if (index->isHybridBuilding() || !index->isReady(opCtx)) { |