summaryrefslogtreecommitdiff
path: root/src/cls_rgw.cc
diff options
context:
space:
mode:
authorYehuda Sadeh <yehuda@hq.newdream.net>2011-09-20 15:34:39 -0700
committerYehuda Sadeh <yehuda@hq.newdream.net>2011-09-20 15:34:39 -0700
commit3a8568b390d8106819e63569313545dbc4912d31 (patch)
tree93e849ce2f573c00e4a6493965aedef16cd4e4fa /src/cls_rgw.cc
parentf137a04640ce236563eaa53fea1c46237f85175d (diff)
downloadceph-3a8568b390d8106819e63569313545dbc4912d31.tar.gz
rgw: fix epoch check (greg)
Diffstat (limited to 'src/cls_rgw.cc')
-rw-r--r--src/cls_rgw.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cls_rgw.cc b/src/cls_rgw.cc
index cbeaf1c7d1e..7d1b91666bb 100644
--- a/src/cls_rgw.cc
+++ b/src/cls_rgw.cc
@@ -103,7 +103,7 @@ int rgw_bucket_modify(cls_method_context_t hctx, bufferlist *in, bufferlist *out
if (miter != dir.m.end()) {
struct rgw_bucket_dir_entry& entry = miter->second;
CLS_LOG("rgw_bucket_modify(): existing entry: epoch=%lld\n", entry.epoch);
- if (op.entry.epoch >= entry.epoch) {
+ if (op.entry.epoch <= entry.epoch) {
CLS_LOG("rgw_bucket_modify(): skipping request, old epoch\n");
return 0;
}