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:
Kefu Chai 2017-05-04 20:53:26 +08:00 committed by GitHub
commit f23e4e79f8

View File

@ -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;
}