Gets the _sync:seq document value. Retry handling provided by bucket.Get.
()
| 381 | |
| 382 | // Gets the _sync:seq document value. Retry handling provided by bucket.Get. |
| 383 | func (s *sequenceAllocator) getSequence() (max uint64, err error) { |
| 384 | return base.GetCounter(s.datastore, s.metaKeys.SyncSeqKey()) |
| 385 | } |
| 386 | |
| 387 | // Increments the _sync:seq document. Retry handling provided by bucket.Incr. |
| 388 | // Expects sequenceAllocator.mutex to be held to ensure consistent LastSequenceReservedValue updates. |