virgodb 0.2.0-x86_64-linux-gnu → 0.3.0-x86_64-linux-gnu
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/virgodb/table.rb +23 -0
- data/lib/virgodb/version.rb +1 -1
- data/lib/virgodb/virgodb_ruby.so +0 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6141e1a5628b4293f7d63bd3143fe20bcbff6f697df38fc67c1da4c2669369ab
|
|
4
|
+
data.tar.gz: 7814e9e3a10ba0ce4e5126e492d38410637aa818d21abb4352b6f038fc9b4139
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz: '
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '0468833ba6f07aed2d56ea13ca5d158a523fb64486ec4fa5259c969200f9c4e991fb96a545ad26a78c8531460855c59dcbcc0904be5a8d43f558dd2bb4f27255'
|
|
7
|
+
data.tar.gz: 475c654f9a604b83c05b0036c4cdffb478c339b05fb794a9cef445b5244584394cef90289bbb57cdc8f7c65a8918fb7a8111e545d9a790c6b375eca454929a47
|
data/lib/virgodb/table.rb
CHANGED
|
@@ -101,6 +101,29 @@ module Virgodb
|
|
|
101
101
|
json && JSON.parse(json)
|
|
102
102
|
end
|
|
103
103
|
|
|
104
|
+
# Claims this table's maintenance lease as `holder` for the next
|
|
105
|
+
# `lease_duration_secs` seconds, locking out the real maintenance
|
|
106
|
+
# thread (its own claim attempts fail against an unexpired lease the
|
|
107
|
+
# same way two maintenance threads would contend) -- meant for a
|
|
108
|
+
# caller like a backup job that needs a window where compaction/vacuum
|
|
109
|
+
# won't rewrite or delete this table's data directory. Returns `false`
|
|
110
|
+
# (not an error) if someone else's lease is still active; callers
|
|
111
|
+
# should retry rather than treat that as failure. Doesn't call `writer`
|
|
112
|
+
# first (unlike `tombstone` above) -- claiming a lease has nothing to
|
|
113
|
+
# do with this table's Writer, and a caller like a backup job may never
|
|
114
|
+
# otherwise touch this table's Writer in this process at all. Not
|
|
115
|
+
# mutex-guarded, same reasoning as `query`/`maintenance_health` above.
|
|
116
|
+
def claim_maintenance_lease(holder:, lease_duration_secs:)
|
|
117
|
+
Virgodb.claim_maintenance_lease(@manifest_path, @sql_table_name, holder.to_s, lease_duration_secs)
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
# Releases a lease claimed via `claim_maintenance_lease` above, so the
|
|
121
|
+
# real maintenance thread can resume on its next poll rather than
|
|
122
|
+
# waiting out the full lease duration.
|
|
123
|
+
def release_maintenance_lease(holder:)
|
|
124
|
+
Virgodb.release_maintenance_lease(@manifest_path, @sql_table_name, holder.to_s)
|
|
125
|
+
end
|
|
126
|
+
|
|
104
127
|
private
|
|
105
128
|
|
|
106
129
|
def writer
|
data/lib/virgodb/version.rb
CHANGED
data/lib/virgodb/virgodb_ruby.so
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: virgodb
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: x86_64-linux-gnu
|
|
6
6
|
authors:
|
|
7
7
|
- virgodb
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-09-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: |
|
|
14
14
|
Embeds virgodb (an OLAP engine backed by Parquet + DataFusion) directly into a Ruby process
|