mirror of
https://github.com/ceph/ceph
synced 2024-12-18 01:16:55 +00:00
ObjectCacher::_wait_for_write(): init 'bool done'
Init 'bool done' with 'false' to fix: osdc/Objecter.h:915:27: warning: implicit conversion los: variable 'done' may be uninitialized when used here [-Wconditional-uninitialized] while (!done) ^~~~ osdc/ObjectCacher.cc:1399:14: note: initialize the variable 'done' to silence this warning bool done; ^ = false Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
This commit is contained in:
parent
8322878c22
commit
cfc885fa56
@ -1396,7 +1396,7 @@ int ObjectCacher::_wait_for_write(OSDWrite *wr, uint64_t len, ObjectSet *oset, M
|
||||
} else {
|
||||
// write-thru! flush what we just wrote.
|
||||
Cond cond;
|
||||
bool done;
|
||||
bool done = false;
|
||||
Context *fin = block_writes_upfront ?
|
||||
new C_Cond(&cond, &done, &ret) : onfreespace;
|
||||
assert(fin);
|
||||
|
Loading…
Reference in New Issue
Block a user