Skip to content

Commit

Permalink
Merge branch 'next'
Browse files Browse the repository at this point in the history
  • Loading branch information
glowell2 committed Mar 21, 2013
2 parents 17d4a7c + cbae6a4 commit d67eee1
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 9 deletions.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ AC_PREREQ(2.59)
# VERSION define is not used by the code. It gets a version string
# from 'git describe'; see src/ceph_ver.[ch]

AC_INIT([ceph], [0.58], [[email protected]])
AC_INIT([ceph], [0.59], [[email protected]])

# Create release string. Used with VERSION for RPMs.
RPM_RELEASE=0
Expand Down
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
ceph (0.59-1) precise; urgency=low

* New upstream release

-- Gary Lowell <[email protected]> Tue, 19 Mar 2013 22:26:37 -0700

ceph (0.58-1) precise; urgency=low

* New upstream release
Expand Down
1 change: 1 addition & 0 deletions src/mon/Paxos.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1124,6 +1124,7 @@ void Paxos::restart()
if (!proposals.empty())
proposals.clear();

state = STATE_RECOVERING;
going_to_bootstrap = false;

finish_contexts(g_ceph_context, waiting_for_commit, -EAGAIN);
Expand Down
25 changes: 17 additions & 8 deletions src/mon/PaxosService.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,12 @@ class PaxosService {
public:
C_RetryMessage(PaxosService *s, PaxosServiceMessage *m_) : svc(s), m(m_) {}
void finish(int r) {
if (r == -ECANCELED) {
if (r == -EAGAIN || r >= 0)
svc->dispatch(m);
else if (r == -ECANCELED)
m->put();
return;
}
svc->dispatch(m);
else
assert(0 == "bad C_RetryMessage return value");
}
};

Expand Down Expand Up @@ -140,10 +141,13 @@ class PaxosService {
public:
C_Propose(PaxosService *p) : ps(p) { }
void finish(int r) {
if (r == -ECANCELED)
return;
ps->proposal_timer = 0;
ps->propose_pending();
if (r >= 0)
ps->propose_pending();
else if (r == -ECANCELED || r == -EAGAIN)
return;
else
assert(0 == "bad return value for C_Propose");
}
};

Expand All @@ -163,7 +167,12 @@ class PaxosService {
C_Committed(PaxosService *p) : ps(p) { }
void finish(int r) {
ps->proposing.set(0);
ps->_active();
if (r >= 0)
ps->_active();
else if (r == -ECANCELED || r == -EAGAIN)
return;
else
assert(0 == "bad return value for C_Committed");
}
};
/**
Expand Down

0 comments on commit d67eee1

Please sign in to comment.