mirror of
https://github.com/ceph/ceph
synced 2025-01-02 09:02:34 +00:00
Merge pull request #19437 from trociny/wip-mock-valgrind
test/rbd_mirror: "use of uninitialised value" valgrind warning Reviewed-by: Jason Dillaman <dillaman@redhat.com>
This commit is contained in:
commit
548bc8bad2
@ -692,14 +692,14 @@ public:
|
||||
EXPECT_CALL(mock_image_sync_throttler, start_op(sync_id, _))
|
||||
.WillOnce(Invoke([on_call, on_start_ctx] (const std::string &,
|
||||
Context *ctx) {
|
||||
if (on_call != nullptr) {
|
||||
on_call->complete(0);
|
||||
}
|
||||
if (on_start_ctx != nullptr) {
|
||||
*on_start_ctx = ctx;
|
||||
} else {
|
||||
ctx->complete(0);
|
||||
}
|
||||
if (on_call != nullptr) {
|
||||
on_call->complete(0);
|
||||
}
|
||||
}));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user