1
0
Fork 0

always initialize client task id

This commit is contained in:
Jan Steemann 2015-04-15 17:21:49 +02:00
parent 5f5b11f422
commit 47353ad276
2 changed files with 4 additions and 3 deletions

View File

@ -89,7 +89,8 @@ HttpRequest::HttpRequest (ConnectionInfo const& info,
_requestContext(nullptr),
_defaultApiCompatibility(defaultApiCompatibility),
_isRequestContextOwner(false),
_allowMethodOverride(allowMethodOverride) {
_allowMethodOverride(allowMethodOverride),
_clientTaskId(0) {
// copy request - we will destroy/rearrange the content to compute the
// headers and values in-place
@ -704,7 +705,7 @@ void HttpRequest::setRequestPath (char const* path) {
/// @brief gets the client task id
////////////////////////////////////////////////////////////////////////////////
uint64_t HttpRequest::clientTaskId () {
uint64_t HttpRequest::clientTaskId () const {
return _clientTaskId;
}

View File

@ -313,7 +313,7 @@ namespace triagens {
/// @brief gets the client task id
////////////////////////////////////////////////////////////////////////////////
uint64_t clientTaskId ();
uint64_t clientTaskId () const;
////////////////////////////////////////////////////////////////////////////////
/// @brief sets the client task id