Skip to content

Commit

Permalink
Delete Cookie() constructor
Browse files Browse the repository at this point in the history
And update the description for initialize()

Change-Id: Iad259d4663275e47668b33259d415e2436e59838
Reviewed-on: https://review.couchbase.org/c/kv_engine/+/184011
Reviewed-by: Jim Walker <jim@couchbase.com>
Tested-by: Build Bot <build@couchbase.com>
  • Loading branch information
trondn committed Dec 15, 2022
1 parent ab15e51 commit 9c0fa1e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions daemon/cookie.h
Expand Up @@ -48,19 +48,19 @@ class Buffer;
*/
class Cookie : public CookieIface {
public:
/// All cookies must belong to a connection
Cookie() = delete;
/// Create a new cookie owned by the provided connection
explicit Cookie(Connection& conn);

~Cookie() override;

/**
* Initialize this cookie.
*
* At some point we'll refactor this into being the constructor
* for the cookie. Currently we create a single cookie object per
* connection which handle all of the commands (and we'll call the
* initialize method every time we're starting on a new one), but
* in the future we'll have multiple commands per connection and
* this method should be the constructor).
* for the cookie, but given that we allow for object reuse across
* commands (DCP depends on this feature) we have a separate method
* to initialize the object.
*
* @param packet the entire packet
* @param tracing_enabled if tracing is enabled for this request
Expand Down

0 comments on commit 9c0fa1e

Please sign in to comment.