Skip to content

Commit 6acef1e

Browse files
trondndaverigby
authored andcommitted
Update Connections section in docs/Architecture.md
Change-Id: Ib17845c0742679d790ba170e74d7c7dc3ddfe266 Reviewed-on: http://review.couchbase.org/c/kv_engine/+/128437 Tested-by: Trond Norbye <[email protected]> Reviewed-by: Dave Rigby <[email protected]>
1 parent 0876083 commit 6acef1e

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

docs/Architecture.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,13 @@ On startup Memcached has a number of tasks:
8686
* Starting the dispatch event loop
8787

8888
## Connection management
89-
The `Connection` class represents a Socket (it is used by both clients and
90-
server objects).
89+
The `Connection` class represents a Client connection and it is
90+
always associated with a Bucket. When the object is created it
91+
is associated with the the bucket named "default" if it exists,
92+
otherwise it'll use the special bucket "no bucket". The user may
93+
switch buckets by using the SELECT BUCKET command, and the system
94+
_MAY_ automatically kick you out of a bucket and put the connection
95+
into the "no bucket" (for instance if someone deletes the bucket).
9196

9297
The Connection object is bound to a thread object, and never changes.
9398

0 commit comments

Comments
 (0)