Skip to content

Instantly share code, notes, and snippets.

@rajivr

rajivr/log-rust Secret

Created December 2, 2021 12:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rajivr/b604cfab468cc8b91ec15f90101b25c7 to your computer and use it in GitHub Desktop.
Save rajivr/b604cfab468cc8b91ec15f90101b25c7 to your computer and use it in GitHub Desktop.
Stack from [
] (0)
tr_map: {}
last_version: 0
0. Instruction is NEW_TRANSACTION (b"test_spec")
last_version: 0
tr_map: {b"test_spec": FdbTransactionPtrWrapper { inner: 0x7f7c74001330 }}
to [
] (0)
Stack from [
] (0)
tr_map: {b"test_spec": FdbTransactionPtrWrapper { inner: 0x7f7c74001330 }}
last_version: 0
1. Instruction is GET_READ_VERSION (b"test_spec")
last_version: 486031772
tr_map: {b"test_spec": FdbTransactionPtrWrapper { inner: 0x7f7c74001330 }}
to [
1. Bytes(b"GOT_READ_VERSION") ] (1)
Stack from [
1. Bytes(b"GOT_READ_VERSION") ] (1)
tr_map: {b"test_spec": FdbTransactionPtrWrapper { inner: 0x7f7c74001330 }}
last_version: 486031772
2. Instruction is COMMIT (b"test_spec")
last_version: 486031772
tr_map: {b"test_spec": FdbTransactionPtrWrapper { inner: 0x7f7c74001330 }}
to [
2. FdbFutureUnit(0x7f7c74001630),
1. Bytes(b"GOT_READ_VERSION") ] (2)
Stack from [
2. FdbFutureUnit(0x7f7c74001630),
1. Bytes(b"GOT_READ_VERSION") ] (2)
tr_map: {b"test_spec": FdbTransactionPtrWrapper { inner: 0x7f7c74001330 }}
last_version: 486031772
3. Instruction is WAIT_FUTURE (b"test_spec")
last_version: 486031772
tr_map: {b"test_spec": FdbTransactionPtrWrapper { inner: 0x7f7c74001330 }}
to [
2. Bytes(b"RESULT_NOT_PRESENT"),
1. Bytes(b"GOT_READ_VERSION") ] (2)
Stack from [
2. Bytes(b"RESULT_NOT_PRESENT"),
1. Bytes(b"GOT_READ_VERSION") ] (2)
tr_map: {b"test_spec": FdbTransactionPtrWrapper { inner: 0x7f7c74001330 }}
last_version: 486031772
4. Instruction is NEW_TRANSACTION (b"test_spec")
last_version: 486031772
tr_map: {b"test_spec": FdbTransactionPtrWrapper { inner: 0x7f7c74001680 }}
to [
2. Bytes(b"RESULT_NOT_PRESENT"),
1. Bytes(b"GOT_READ_VERSION") ] (2)
Stack from [
2. Bytes(b"RESULT_NOT_PRESENT"),
1. Bytes(b"GOT_READ_VERSION") ] (2)
tr_map: {b"test_spec": FdbTransactionPtrWrapper { inner: 0x7f7c74001680 }}
last_version: 486031772
5. Instruction is COMMIT (b"test_spec")
last_version: 486031772
tr_map: {b"test_spec": FdbTransactionPtrWrapper { inner: 0x7f7c74001680 }}
to [
5. FdbFutureUnit(0x7f7c74001330),
2. Bytes(b"RESULT_NOT_PRESENT"),
1. Bytes(b"GOT_READ_VERSION") ] (3)
Stack from [
5. FdbFutureUnit(0x7f7c74001330),
2. Bytes(b"RESULT_NOT_PRESENT"),
1. Bytes(b"GOT_READ_VERSION") ] (3)
tr_map: {b"test_spec": FdbTransactionPtrWrapper { inner: 0x7f7c74001680 }}
last_version: 486031772
6. Instruction is WAIT_FUTURE (b"test_spec")
last_version: 486031772
tr_map: {b"test_spec": FdbTransactionPtrWrapper { inner: 0x7f7c74001680 }}
to [
5. Bytes(b"RESULT_NOT_PRESENT"),
2. Bytes(b"RESULT_NOT_PRESENT"),
1. Bytes(b"GOT_READ_VERSION") ] (3)
Stack from [
5. Bytes(b"RESULT_NOT_PRESENT"),
2. Bytes(b"RESULT_NOT_PRESENT"),
1. Bytes(b"GOT_READ_VERSION") ] (3)
tr_map: {b"test_spec": FdbTransactionPtrWrapper { inner: 0x7f7c74001680 }}
last_version: 486031772
7. Instruction is GET_COMMITTED_VERSION (b"test_spec")
last_version: -1
tr_map: {b"test_spec": FdbTransactionPtrWrapper { inner: 0x7f7c74001680 }}
to [
7. Bytes(b"GOT_COMMITTED_VERSION"),
5. Bytes(b"RESULT_NOT_PRESENT"),
2. Bytes(b"RESULT_NOT_PRESENT"),
1. Bytes(b"GOT_READ_VERSION") ] (4)
Stack from [
7. Bytes(b"GOT_COMMITTED_VERSION"),
5. Bytes(b"RESULT_NOT_PRESENT"),
2. Bytes(b"RESULT_NOT_PRESENT"),
1. Bytes(b"GOT_READ_VERSION") ] (4)
tr_map: {b"test_spec": FdbTransactionPtrWrapper { inner: 0x7f7c74001680 }}
last_version: -1
8. Instruction is RESET (b"test_spec")
last_version: -1
tr_map: {b"test_spec": FdbTransactionPtrWrapper { inner: 0x7f7c74001680 }}
to [
7. Bytes(b"GOT_COMMITTED_VERSION"),
5. Bytes(b"RESULT_NOT_PRESENT"),
2. Bytes(b"RESULT_NOT_PRESENT"),
1. Bytes(b"GOT_READ_VERSION") ] (4)
Stack from [
7. Bytes(b"GOT_COMMITTED_VERSION"),
5. Bytes(b"RESULT_NOT_PRESENT"),
2. Bytes(b"RESULT_NOT_PRESENT"),
1. Bytes(b"GOT_READ_VERSION") ] (4)
tr_map: {b"test_spec": FdbTransactionPtrWrapper { inner: 0x7f7c74001680 }}
last_version: -1
9. Instruction is SET_READ_VERSION (b"test_spec")
last_version: -1
tr_map: {b"test_spec": FdbTransactionPtrWrapper { inner: 0x7f7c74001680 }}
to [
7. Bytes(b"GOT_COMMITTED_VERSION"),
5. Bytes(b"RESULT_NOT_PRESENT"),
2. Bytes(b"RESULT_NOT_PRESENT"),
1. Bytes(b"GOT_READ_VERSION") ] (4)
Stack from [
7. Bytes(b"GOT_COMMITTED_VERSION"),
5. Bytes(b"RESULT_NOT_PRESENT"),
2. Bytes(b"RESULT_NOT_PRESENT"),
1. Bytes(b"GOT_READ_VERSION") ] (4)
tr_map: {b"test_spec": FdbTransactionPtrWrapper { inner: 0x7f7c74001680 }}
last_version: -1
10. Instruction is CANCEL (b"test_spec")
last_version: -1
tr_map: {b"test_spec": FdbTransactionPtrWrapper { inner: 0x7f7c74001680 }}
to [
7. Bytes(b"GOT_COMMITTED_VERSION"),
5. Bytes(b"RESULT_NOT_PRESENT"),
2. Bytes(b"RESULT_NOT_PRESENT"),
1. Bytes(b"GOT_READ_VERSION") ] (4)
Stack from [
7. Bytes(b"GOT_COMMITTED_VERSION"),
5. Bytes(b"RESULT_NOT_PRESENT"),
2. Bytes(b"RESULT_NOT_PRESENT"),
1. Bytes(b"GOT_READ_VERSION") ] (4)
tr_map: {b"test_spec": FdbTransactionPtrWrapper { inner: 0x7f7c74001680 }}
last_version: -1
11. Instruction is GET_READ_VERSION (b"test_spec")
last_version: -1
tr_map: {b"test_spec": FdbTransactionPtrWrapper { inner: 0x7f7c74001680 }}
to [
11. Bytes(b"\x01ERROR\0\x011025\0"),
7. Bytes(b"GOT_COMMITTED_VERSION"),
5. Bytes(b"RESULT_NOT_PRESENT"),
2. Bytes(b"RESULT_NOT_PRESENT"),
1. Bytes(b"GOT_READ_VERSION") ] (5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment