We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 615cb41 commit 7be9edbCopy full SHA for 7be9edb
1 file changed
batch.go
@@ -1324,6 +1324,10 @@ func (b *Batch) Repr() []byte {
1324
//
1325
// SetRepr may return ErrInvalidBatch if the supplied slice fails to decode in
1326
// any way. It will not return an error in any other circumstance.
1327
+//
1328
+// The caller is responsible for ensuring that the batch is applied to a DB at
1329
+// a FormatMajorVersion that supports all of the operation kinds encoded in the
1330
+// supplied slice.
1331
func (b *Batch) SetRepr(data []byte) error {
1332
h, ok := batchrepr.ReadHeader(data)
1333
if !ok {
0 commit comments