mirror of
https://github.com/ceph/ceph
synced 2025-02-07 10:53:30 +00:00
Merge pull request #4594 from liewegas/wip-librbd-warning
librbd: fix warning Reviewed-by: Jason Dillaman <dillaman@redhat.com>
This commit is contained in:
commit
1fc4b1bbbc
@ -839,10 +839,11 @@ namespace librbd {
|
||||
ImageCtx *ictx = (ImageCtx *)ctx;
|
||||
tracepoint(librbd, metadata_get_enter, ictx, key.c_str());
|
||||
int r = librbd::metadata_get(ictx, key, value);
|
||||
if (r < 0)
|
||||
if (r < 0) {
|
||||
tracepoint(librbd, metadata_get_exit, r, key.c_str(), NULL);
|
||||
else
|
||||
} else {
|
||||
tracepoint(librbd, metadata_get_exit, r, key.c_str(), value->c_str());
|
||||
}
|
||||
return r;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user