Skip to content

Commit afbb744

Browse files
committed
librbd: drop unused parameter on group_snap_rollback_by_record()
Signed-off-by: Ilya Dryomov <[email protected]>
1 parent f212a9c commit afbb744

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/librbd/api/Group.cc

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,6 @@ int group_snap_remove_by_record(librados::IoCtx& group_ioctx,
309309
int group_snap_rollback_by_record(librados::IoCtx& group_ioctx,
310310
const cls::rbd::GroupSnapshot& group_snap,
311311
const std::string& group_id,
312-
const std::string& group_header_oid,
313312
ProgressContext& pctx) {
314313
CephContext *cct = (CephContext *)group_ioctx.cct();
315314
std::vector<C_SaferCond*> on_finishes;
@@ -1310,9 +1309,7 @@ int Group<I>::snap_rollback(librados::IoCtx& group_ioctx,
13101309
return -EINVAL;
13111310
}
13121311

1313-
string group_header_oid = util::group_header_name(group_id);
1314-
r = group_snap_rollback_by_record(group_ioctx, *group_snap, group_id,
1315-
group_header_oid, pctx);
1312+
r = group_snap_rollback_by_record(group_ioctx, *group_snap, group_id, pctx);
13161313
return r;
13171314
}
13181315

0 commit comments

Comments
 (0)