|
@@ -244,7 +244,7 @@ func (nDB *NetworkDB) getEntry(tname, nid, key string) (*entry, error) {
|
|
|
|
|
|
// CreateEntry creates a table entry in NetworkDB for given (network,
|
|
|
// table, key) tuple and if the NetworkDB is part of the cluster
|
|
|
-// propogates this event to the cluster. It is an error to create an
|
|
|
+// propagates this event to the cluster. It is an error to create an
|
|
|
// entry for the same tuple for which there is already an existing
|
|
|
// entry unless the current entry is deleting state.
|
|
|
func (nDB *NetworkDB) CreateEntry(tname, nid, key string, value []byte) error {
|
|
@@ -279,7 +279,7 @@ func (nDB *NetworkDB) CreateEntry(tname, nid, key string, value []byte) error {
|
|
|
|
|
|
// UpdateEntry updates a table entry in NetworkDB for given (network,
|
|
|
// table, key) tuple and if the NetworkDB is part of the cluster
|
|
|
-// propogates this event to the cluster. It is an error to update a
|
|
|
+// propagates this event to the cluster. It is an error to update a
|
|
|
// non-existent entry.
|
|
|
func (nDB *NetworkDB) UpdateEntry(tname, nid, key string, value []byte) error {
|
|
|
if _, err := nDB.GetEntry(tname, nid, key); err != nil {
|
|
@@ -307,7 +307,7 @@ func (nDB *NetworkDB) UpdateEntry(tname, nid, key string, value []byte) error {
|
|
|
|
|
|
// DeleteEntry deletes a table entry in NetworkDB for given (network,
|
|
|
// table, key) tuple and if the NetworkDB is part of the cluster
|
|
|
-// propogates this event to the cluster.
|
|
|
+// propagates this event to the cluster.
|
|
|
func (nDB *NetworkDB) DeleteEntry(tname, nid, key string) error {
|
|
|
value, err := nDB.GetEntry(tname, nid, key)
|
|
|
if err != nil {
|
|
@@ -408,7 +408,7 @@ func (nDB *NetworkDB) WalkTable(tname string, fn func(string, string, []byte) bo
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
-// JoinNetwork joins this node to a given network and propogates this
|
|
|
+// JoinNetwork joins this node to a given network and propagates this
|
|
|
// event across the cluster. This triggers this node joining the
|
|
|
// sub-cluster of this network and participates in the network-scoped
|
|
|
// gossip and bulk sync for this network.
|
|
@@ -447,7 +447,7 @@ func (nDB *NetworkDB) JoinNetwork(nid string) error {
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
-// LeaveNetwork leaves this node from a given network and propogates
|
|
|
+// LeaveNetwork leaves this node from a given network and propagates
|
|
|
// this event across the cluster. This triggers this node leaving the
|
|
|
// sub-cluster of this network and as a result will no longer
|
|
|
// participate in the network-scoped gossip and bulk sync for this
|