Skip to content

Commit

Permalink
Merge pull request ceph#1591 from ceph/wip-7915
Browse files Browse the repository at this point in the history
mon: bump snap_epoch when adding a tier (fixes 7915)

Reviewed-by: Samuel Just <[email protected]>
  • Loading branch information
Samuel Just committed Apr 2, 2014
2 parents 27e353c + 6bf46e2 commit eae5a37
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mon/OSDMonitor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4929,6 +4929,7 @@ bool OSDMonitor::prepare_command_impl(MMonCommand *m,
return true;
}
np->tiers.insert(tierpool_id);
np->set_snap_epoch(pending_inc.epoch); // tier will update to our snap info
ntp->tier_of = pool_id;
ss << "pool '" << tierpoolstr << "' is now (or already was) a tier of '" << poolstr << "'";
wait_for_finished_proposal(new Monitor::C_Command(mon, m, 0, ss.str(),
Expand Down Expand Up @@ -5176,6 +5177,7 @@ bool OSDMonitor::prepare_command_impl(MMonCommand *m,
return true;
}
np->tiers.insert(tierpool_id);
np->set_snap_epoch(pending_inc.epoch); // tier will update to our snap info
ntp->tier_of = pool_id;
ntp->cache_mode = mode;
ntp->hit_set_count = g_conf->osd_tier_default_cache_hit_set_count;
Expand Down

0 comments on commit eae5a37

Please sign in to comment.