MCPcopy
hub / github.com/ha/doozerd / nop

Method nop

src/pkg/server/txn.go:139–154  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

137
138
139func (t *txn) nop() {
140 if !t.c.waccess {
141 t.respondOsError(os.EACCES)
142 return
143 }
144
145 if !t.c.canWrite {
146 t.respondErrCode(response_READONLY)
147 return
148 }
149
150 go func() {
151 t.c.p.Propose([]byte(store.Nop))
152 t.respond()
153 }()
154}
155
156
157func (t *txn) rev() {

Callers

nothing calls this directly

Calls 4

respondOsErrorMethod · 0.95
respondErrCodeMethod · 0.95
respondMethod · 0.95
ProposeMethod · 0.65

Tested by

no test coverage detected