Skip to content

Commit 33dcdef

Browse files
committed
even harder
1 parent 3b15661 commit 33dcdef

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

pkg/kv/kvserver/replica_application_result.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ package kvserver
1212

1313
import (
1414
"context"
15+
"fmt"
1516
"math/rand"
1617
"os"
1718

@@ -271,7 +272,8 @@ func tryReproposeWithNewLeaseIndex(
271272
// now.
272273
p.command.MaxLeaseIndex = prevMaxLeaseIndex
273274
p.encodedCommand = prevEncodedCommand
274-
panic(pErr.GoError())
275+
fmt.Fprintln(os.Stderr, pErr.GoError())
276+
os.Exit(44)
275277
//return pErr
276278
}
277279
log.VEventf(ctx, 2, "reproposed command %x", cmd.ID)

0 commit comments

Comments
 (0)