You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cluster/cluster.go
+15-8Lines changed: 15 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,4 @@
1
+
// Package cluster provides a server side cluster which is transparent to client. You can connect to any node in the cluster to access all data in the cluster
1
2
package cluster
2
3
3
4
import (
@@ -16,6 +17,8 @@ import (
16
17
"strings"
17
18
)
18
19
20
+
// Cluster represents a node of godis cluster
21
+
// it holds part of data and coordinates other nodes to finish transactions
19
22
typeClusterstruct {
20
23
selfstring
21
24
@@ -37,7 +40,7 @@ const (
37
40
// if only one node involved in a transaction, just execute the command don't apply tcc procedure
38
41
varallowFastTransaction=true
39
42
40
-
// start current processing as a node of cluster
43
+
// MakeCluster creates and starts a node of cluster
0 commit comments