Skip to content

Commit

Permalink
Merge pull request ceph#1625 from ceph/wip-8019
Browse files Browse the repository at this point in the history
osd: fix journal umount/mount weirdness

Reviewed-by: Samuel Just <[email protected]>
  • Loading branch information
Samuel Just committed Apr 8, 2014
2 parents ddafcc3 + 4de49e8 commit 4bb0628
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/os/JournalingObjectStore.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ void JournalingObjectStore::journal_stop()
delete journal;
journal = 0;
}
apply_manager.reset();
}

int JournalingObjectStore::journal_replay(uint64_t fs_op_seq)
Expand Down
7 changes: 7 additions & 0 deletions src/os/JournalingObjectStore.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,13 @@ class JournalingObjectStore : public ObjectStore {
max_applied_seq(0),
com_lock("JOS::ApplyManager::com_lock", false, true, false, g_ceph_context),
committing_seq(0), committed_seq(0) {}
void reset() {
assert(open_ops == 0);
assert(blocked == false);
max_applied_seq = 0;
committing_seq = 0;
committed_seq = 0;
}
void add_waiter(uint64_t, Context*);
uint64_t op_apply_start(uint64_t op);
void op_apply_finish(uint64_t op);
Expand Down
2 changes: 1 addition & 1 deletion src/vstart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ EOF
uuid=`uuidgen`
echo "add osd$osd $uuid"
$SUDO $CEPH_ADM osd create $uuid
$SUDO $CEPH_ADM osd crush add osd.$osd 1.0 host=localhost rack=localrack root=default
$SUDO $CEPH_ADM osd crush add osd.$osd 1.0 host=$HOSTNAME root=default
$SUDO $CEPH_BIN/ceph-osd -i $osd $ARGS --mkfs --mkkey --osd-uuid $uuid

key_fn=$CEPH_DEV_DIR/osd$osd/keyring
Expand Down

0 comments on commit 4bb0628

Please sign in to comment.