mirror of
https://github.com/ceph/ceph
synced 2024-12-26 21:43:10 +00:00
Merge pull request #14953 from tchaikov/wip-librbd-silence-Wunused-var
librbd: silence -Wunused-variable warning Reviewed-by: Jason Dillaman <dillaman@redhat.com>
This commit is contained in:
commit
f23e4e79f8
@ -569,11 +569,13 @@ namespace librbd {
|
||||
tracepoint(librbd, trash_list_enter,
|
||||
io_ctx.get_pool_name().c_str(), io_ctx.get_id());
|
||||
int r = librbd::trash_list(io_ctx, entries);
|
||||
#ifdef WITH_LTTNG
|
||||
if (r >= 0) {
|
||||
for (const auto& entry : entries) {
|
||||
tracepoint(librbd, trash_list_entry, entry.id.c_str());
|
||||
}
|
||||
}
|
||||
#endif
|
||||
tracepoint(librbd, trash_list_exit, r, r);
|
||||
return r;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user