diff options
author | Yehuda Sadeh <yehuda@hq.newdream.net> | 2010-06-10 11:52:05 -0700 |
---|---|---|
committer | Yehuda Sadeh <yehuda@hq.newdream.net> | 2010-06-10 14:45:40 -0700 |
commit | f34c5b9197eec2924175fe7cebf3a34552010f6b (patch) | |
tree | a745b53550ca6739077cd99baf78a74e70ad3dd2 /src/cls_rbd.cc | |
parent | 912e3c852465b93401cc3374ab987c93db5b3472 (diff) | |
download | ceph-f34c5b9197eec2924175fe7cebf3a34552010f6b.tar.gz |
cls_rbd: fix snapshots seq number
Diffstat (limited to 'src/cls_rbd.cc')
-rw-r--r-- | src/cls_rbd.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cls_rbd.cc b/src/cls_rbd.cc index edb07f45269..2b1d91055bb 100644 --- a/src/cls_rbd.cc +++ b/src/cls_rbd.cc @@ -142,7 +142,7 @@ int snapshot_add(cls_method_context_t hctx, bufferlist *in, bufferlist *out) header->snap_count = header->snap_count + 1; header->snap_names_len = header->snap_names_len + snap_name_len + 1; - header->snap_seq = header->snap_seq + 1; + header->snap_seq = snap_id; new_snaps[0].id = snap_id; new_snaps[0].image_size = header->image_size; |