Skip to content

Commit

Permalink
expose requestNumber (seqnum) from ServerRequest
Browse files Browse the repository at this point in the history
used by places like patchappender
also fix compiler warning in UT

Change-Id: Iee27431d47a6f18b9d4b5de866f9d14cf523fa76
Reviewed-on: https://gerrit.dechocorp.com/28709
Reviewed-by: Jenkins <hudsonbuild@mozy.com>
Reviewed-by: Jeremy Stanley <jeremy@mozy.com>
  • Loading branch information
Wen Zhao committed Jan 20, 2012
1 parent fa3ba6c commit 1d151a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions mordor/http/server.h
Expand Up @@ -90,6 +90,7 @@ class ServerRequest : public boost::enable_shared_from_this<ServerRequest>, boos
///
/// Context of the ServerRequest
const std::string & context() const { return m_context; }
unsigned long long requestNumber() const { return m_requestNumber; }

private:
void doRequest();
Expand Down
2 changes: 1 addition & 1 deletion mordor/tests/thread.cpp
Expand Up @@ -49,7 +49,7 @@ static void doSomething(WorkerPool &pool)

static void rethrowException(WorkerPool &poolA, WorkerPool &poolB)
{
tid_t mainTid;
tid_t mainTid = 0;
try {
// execute in poolA
poolA.switchTo();
Expand Down

0 comments on commit 1d151a5

Please sign in to comment.