Skip to content

Commit

Permalink
mon: Don't forget set read_tier/write_tier for 'osd tier add-cache'.
Browse files Browse the repository at this point in the history
Signed-off-by: Jianpeng Ma <[email protected]>
  • Loading branch information
majianpeng authored and liewegas committed Mar 11, 2015
1 parent 3651be6 commit 83d0581
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/mon/OSDMonitor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6455,6 +6455,7 @@ bool OSDMonitor::prepare_command_impl(MMonCommand *m,
return true;
}
np->tiers.insert(tierpool_id);
np->read_tier = np->write_tier = 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;
Expand Down

0 comments on commit 83d0581

Please sign in to comment.