diff options
author | Alex Taskov <alex.taskov@mongodb.com> | 2020-03-10 20:17:53 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-03-11 00:32:46 +0000 |
commit | ea86f6a717036652450fab61aa6a60bb7d3f7dd3 (patch) | |
tree | d8c393cc94cf934b068ab6800dad2964a9999ee7 /src | |
parent | e2d5e628f4c65a66eb5ca39f43aa7f71b2fd1d6b (diff) | |
download | mongo-ea86f6a717036652450fab61aa6a60bb7d3f7dd3.tar.gz |
SERVER-45207 Address of stack memory associated with local variable 'replOperation' returned to caller
Diffstat (limited to 'src')
-rw-r--r-- | src/mongo/db/s/migration_chunk_cloner_source_legacy.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/s/migration_chunk_cloner_source_legacy.cpp b/src/mongo/db/s/migration_chunk_cloner_source_legacy.cpp index 98766413fac..00a63ba4f49 100644 --- a/src/mongo/db/s/migration_chunk_cloner_source_legacy.cpp +++ b/src/mongo/db/s/migration_chunk_cloner_source_legacy.cpp @@ -91,8 +91,8 @@ BSONObj createRequestWithSessionId(StringData commandName, return builder.obj(); } -const BSONObj& getDocumentKeyFromReplOperation(repl::ReplOperation replOperation, - repl::OpTypeEnum opType) { +BSONObj getDocumentKeyFromReplOperation(repl::ReplOperation replOperation, + repl::OpTypeEnum opType) { switch (opType) { case repl::OpTypeEnum::kInsert: case repl::OpTypeEnum::kDelete: |