From 273517af14280bf80fc2ae06e3fba43c11d26698 Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Fri, 15 Mar 2013 10:58:29 +0100 Subject: [PATCH] osd/SnapMapper.cc: use empty() instead of size() == 0 Signed-off-by: Danny Al-Gaaf --- src/osd/SnapMapper.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osd/SnapMapper.cc b/src/osd/SnapMapper.cc index d6d2749aeee..315e2e2fe86 100644 --- a/src/osd/SnapMapper.cc +++ b/src/osd/SnapMapper.cc @@ -140,7 +140,7 @@ int SnapMapper::get_snaps( int r = backend.get_keys(keys, &got); if (r < 0) return r; - if (got.size() == 0) + if (got.empty()) return -ENOENT; if (out) { bufferlist::iterator bp = got.begin()->second.begin(); -- 2.47.3