prometheus-client-mmap 0.28.0-x86_64-linux → 0.28.1-x86_64-linux
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/fast_mmaped_file/mmap.c +0 -10
- data/ext/fast_mmaped_file_rs/src/mmap/inner.rs +0 -10
- data/ext/fast_mmaped_file_rs/src/mmap.rs +0 -3
- data/lib/2.7/fast_mmaped_file.so +0 -0
- data/lib/2.7/fast_mmaped_file_rs.so +0 -0
- data/lib/3.0/fast_mmaped_file.so +0 -0
- data/lib/3.0/fast_mmaped_file_rs.so +0 -0
- data/lib/3.1/fast_mmaped_file.so +0 -0
- data/lib/3.1/fast_mmaped_file_rs.so +0 -0
- data/lib/3.2/fast_mmaped_file.so +0 -0
- data/lib/3.2/fast_mmaped_file_rs.so +0 -0
- data/lib/prometheus/client/version.rb +1 -1
- 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: '014973ac0ab1c0e391251b9a9731687a5f178e91a738901d47331434fc4340fb'
|
4
|
+
data.tar.gz: 2b5c20d70ce59bef31e29bb1779c9c43c0a6428ecbe0099d22e187b27bf0cbf3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2e5478ac79c584831f078d33fbc3a6bac17602ec54a1fdd64d52b2f6edc05b29fa98916d96a8716c6bcfc8b69975b400c6713ec7fed32a7fff5e0ec2106e22c
|
7
|
+
data.tar.gz: 9295e5754f4eb3c8ce0ff8828142cde72483b89b8751adabcdd6aaaaafa5fc23c19eddc4344a4f10b25320be06004d34a8989b6b51b3e37e19fe052597d73732
|
data/ext/fast_mmaped_file/mmap.c
CHANGED
@@ -189,12 +189,6 @@ static void mm_free(mm_ipc *i_mm) {
|
|
189
189
|
}
|
190
190
|
|
191
191
|
if (i_mm->t->path != (char *)-1) {
|
192
|
-
if (i_mm->t->real < i_mm->t->len && i_mm->t->vscope != MAP_PRIVATE &&
|
193
|
-
truncate(i_mm->t->path, i_mm->t->real) == -1) {
|
194
|
-
free(i_mm->t->path);
|
195
|
-
free(i_mm);
|
196
|
-
rb_raise(rb_eTypeError, "truncate");
|
197
|
-
}
|
198
192
|
free(i_mm->t->path);
|
199
193
|
}
|
200
194
|
}
|
@@ -414,10 +408,6 @@ VALUE mm_unmap(VALUE obj) {
|
|
414
408
|
}
|
415
409
|
|
416
410
|
if (i_mm->t->path != (char *)-1) {
|
417
|
-
if (i_mm->t->real < i_mm->t->len && i_mm->t->vscope != MAP_PRIVATE &&
|
418
|
-
truncate(i_mm->t->path, i_mm->t->real) == -1) {
|
419
|
-
rb_raise(rb_eTypeError, "truncate");
|
420
|
-
}
|
421
411
|
free(i_mm->t->path);
|
422
412
|
}
|
423
413
|
|
@@ -224,16 +224,6 @@ impl InnerMmap {
|
|
224
224
|
}
|
225
225
|
}
|
226
226
|
|
227
|
-
/// Truncate the mmapped file to the end of the metrics data.
|
228
|
-
pub fn truncate_file(&mut self) -> Result<()> {
|
229
|
-
// CAST: no-op on 64-bit, widening on 32-bit.
|
230
|
-
let trunc_len = self.len as u64;
|
231
|
-
|
232
|
-
self.file
|
233
|
-
.set_len(trunc_len)
|
234
|
-
.map_err(|e| MmapError::legacy(format!("truncate: {e}"), RubyError::Type))
|
235
|
-
}
|
236
|
-
|
237
227
|
/// Load the `used` header containing the size of the metrics data written.
|
238
228
|
pub fn load_used(&self) -> Result<u32> {
|
239
229
|
match read_u32(self.map.as_ref(), 0) {
|
@@ -225,9 +225,6 @@ impl MmapedFile {
|
|
225
225
|
let rs_self = &*rb_self;
|
226
226
|
|
227
227
|
rs_self.inner_mut(|inner| {
|
228
|
-
// truncate file to actual used size
|
229
|
-
inner.truncate_file()?;
|
230
|
-
|
231
228
|
// We are about to release the backing mmap for Ruby's String
|
232
229
|
// objects. If Ruby attempts to read from them the program will
|
233
230
|
// segfault. We update the length of all Strings to zero so Ruby
|
data/lib/2.7/fast_mmaped_file.so
CHANGED
Binary file
|
Binary file
|
data/lib/3.0/fast_mmaped_file.so
CHANGED
Binary file
|
Binary file
|
data/lib/3.1/fast_mmaped_file.so
CHANGED
Binary file
|
Binary file
|
data/lib/3.2/fast_mmaped_file.so
CHANGED
Binary file
|
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: prometheus-client-mmap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.28.
|
4
|
+
version: 0.28.1
|
5
5
|
platform: x86_64-linux
|
6
6
|
authors:
|
7
7
|
- Tobias Schmidt
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2023-
|
14
|
+
date: 2023-10-05 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rb_sys
|