Commit Graph

136 Commits

Author SHA1 Message Date
Alex Sharov
9fa56d97ea
kv_mdbx: don't use defer for wg.Add(). not necessary and sometime it checking invalid err variable (#1019) 2023-06-13 03:57:11 +00:00
Alex Sharov
dfdc66dfeb
mdbx: tx.Get - avoid interface casting (#1017) 2023-06-11 02:45:41 +00:00
Alex Sharov
cf41b09ed2
remove "db" log line from (#995) 2023-05-14 01:42:51 +00:00
ledgerwatch
1113e19aca
Separate logs for kv/remotedbserver (#993)
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro-2.local>
2023-05-10 16:09:09 +00:00
Alex Sharov
160ecd927e
reduce default --db.size.limit from 7 to 3 Tb (to fit defaults of some systems) (#992) 2023-05-10 02:43:17 +00:00
Alex Sharov
0e2883bf3f
LeakDetector: use it to find which resource was created but not closed (leaked) (#990) 2023-05-08 05:22:24 +00:00
Alex Sharov
546a2a4ccd
erigon backup: v0 of sub-command (#980) 2023-04-27 03:41:17 +00:00
Alex Sharov
b1183da945
e3: remove files when no readers (#978) 2023-04-23 04:55:13 +00:00
Alex Sharov
0d918d9f7d
add flag --db.size.limit (#973) 2023-04-17 12:49:08 +00:00
Alex Sharov
0b9404adb8
add constant kv.Unlim=-1 (#955) 2023-03-26 03:18:07 +00:00
Alex Sharov
5160bef4bc
e3: DomainGetAsOf, DomainRange (#953) 2023-03-25 03:51:41 +00:00
Alex Sharov
f110e80dab
go 1.19 atomics (#951) 2023-03-23 05:11:20 +00:00
Alex Sharov
e143f7756f
e3: history no auto-increment (#935) 2023-03-15 06:47:48 +00:00
alex.sharov
25d913c676 better iter dup 2023-03-09 09:57:16 +07:00
Alex Sharov
05d0018864
e3: use iterators composition in invIndex.Range( (#926) 2023-03-09 02:26:29 +00:00
Alex Sharov
fd8122be5b
mdbx: RangeDupSort iterator (#925) 2023-03-08 10:16:04 +00:00
ledgerwatch
fe85438cb4
kv/mdbx: Ability to list tables from read-only tx, and enumerate DBs open in a process (#897)
This is for the diagnostics project

---------

Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2023-02-22 08:30:20 +00:00
Alex Sharov
565acd3624
e3: read files list from db (#885) 2023-02-13 05:16:58 +00:00
Maxim Andreev
ddf6c3bcf3
kv_mdbx: fix typo db.evn -> db.env (#887) 2023-02-12 18:20:50 +07:00
Alex Sharov
3e933bc456
Downloader: "incomplete" markers are more important than "complete", so commit them with fsync (#883)
On power-off recent "no-sync" txs may be lost. It will cause 2. cases:
- Good piece on disk and recent "complete" db marker lost. Self-Heal by
re-download.
- Bad piece on dis and recent "incomplete" db marker lost. No Self-Heal.
So, can't afford loosing recent "incomplete" markers.
2023-02-10 13:20:13 +07:00
Alex Sharov
8861f19b11
e3: ots_getContractCreator (#854) 2023-01-26 16:34:57 +07:00
Alex Sharov
f62649c307
e3: getLogs on iterators (#851) 2023-01-25 16:29:23 +07:00
Alex Sharov
ed2c64f5fb
e3: rename "stream" to "iter" (#844) 2023-01-21 11:11:30 +07:00
ledgerwatch
ac237028d0
Rollback MDBX upgrade (#842)
There is some circumstantial evidence that there are some regressions in
this version of MDBX, I would like to rollback to either remove these
regressions or at least eliminate one of the possible causes

Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2023-01-20 20:11:58 +00:00
Alex Sharov
a705195fa0
e3: reverse/limited iterators, stream tooling (#840) 2023-01-20 18:08:22 +07:00
alex.sharov
1fb7e7ae77 simplify cursor2stream 2023-01-17 14:42:47 +07:00
alex.sharov
bfca37c869 simplify cursor2stream 2023-01-17 14:40:41 +07:00
alex.sharov
f09fa4a732 simplify cursor2stream 2023-01-17 14:32:56 +07:00
Alex Sharov
aaafab8fc0
e3: storageRangeAt (#833) 2023-01-17 14:16:33 +07:00
alex.sharov
8f3178f2f2 Revert "mdbx: proper atomic close (#827)"
This reverts commit 493ae8b083.
2023-01-10 13:20:01 +07:00
Alex Sharov
493ae8b083
mdbx: proper atomic close (#827) 2023-01-10 12:02:23 +07:00
Alex Sharov
d2d03d140b
mdbx: v0.12.3 (#824) 2023-01-10 09:15:04 +07:00
Alex Sharov
7da5281947
kv: db.ReadOnly() method (#806) 2022-12-28 12:48:54 +07:00
alex.sharov
ee6b511615 save 2022-12-26 21:31:53 +07:00
Alex Sharov
9a6ae5bf5a
kv: tx.Prefix method (#804) 2022-12-26 17:58:17 +07:00
alex.sharov
d0ccc19cb9 mdbx: set max bg sync bytes limit 2022-12-25 22:00:20 +07:00
alex.sharov
b023e06483 save 2022-12-25 21:54:07 +07:00
Alex Sharov
0aeae327e1
KV: tx.Range() with stream api (#803) 2022-12-25 17:40:04 +07:00
Alex Sharov
3170bf0a57
kv_remote: server to support thread-safe multi-streams per 1 tx (#798) 2022-12-24 13:11:09 +07:00
alex.sharov
c8cd6f567f save 2022-12-24 11:18:49 +07:00
Alex Sharov
5c2433d8cf
in mem test - don't use writemap (#801) 2022-12-23 14:37:55 +07:00
Alex Sharov
d89b77ccb3
better memdb use in tesets (#790) 2022-12-19 10:58:15 +07:00
Alex Sharov
2cabdd37fc
e3: prune all keys by DeleteCurrentDuplicates (#788) 2022-12-19 10:09:29 +07:00
Alex Sharov
3b68fec09a
mdbx: relax a bit merge limit (still leave it stronger than default) (#786) 2022-12-17 20:06:19 +07:00
Alex Sharov
3cf9b451e1
mdbx: runtime options are changeable in Ascedee mode (#771) 2022-12-07 17:10:32 +07:00
Alex Sharov
263a9e3583
mdbx: dirtySpace option expose (#770) 2022-12-07 16:35:55 +07:00
Alex Sharov
0c5a850177
mdbx bindings: remove txn.RawRead field (#769) 2022-12-07 13:08:51 +07:00
Alex Sharov
2dcec83222
mdbx: add BeginRwAsync method (#767) 2022-12-07 11:19:08 +07:00
alex.sharov
bf912d4eaa save 2022-12-07 10:31:14 +07:00
Alex Sharov
bee082f614
log experiment enabling (#759) 2022-12-03 12:56:12 +07:00