prometheus-client-mmap 0.7.0.beta45.4 → 0.7.0.beta45.5
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6cb261c458a38464b3a345259795bd0f914073e0
|
4
|
+
data.tar.gz: 607c65a623b49f822f2fc162cfa2d2bc4fa8ca73
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b15a60ddbe60de3a8f03f17c2b24581e048ff851f5fa2a168f9be4382feeaedcc03fd003c895035be4c95eea7066ce052f2fd9ca2314b8a20148092d11b1721
|
7
|
+
data.tar.gz: bba08453edbb53ad01337660120de525caa6179cad0ecf23daa9dbe70bb5db88b80b873ab6470fbd1fdb034e7d7bec6a91b50ddd59daa7f611112c4977fe18f1
|
@@ -60,7 +60,7 @@ void merge_or_store(struct hashmap *map, entry_t *entry) {
|
|
60
60
|
}
|
61
61
|
}
|
62
62
|
|
63
|
-
|
63
|
+
entry_t *entry_new(buffer_t *source, uint32_t pos, uint32_t encoded_len, file_t *file_info) {
|
64
64
|
entry_t *entry = calloc(1, sizeof(entry_t));
|
65
65
|
if (entry == NULL) {
|
66
66
|
return NULL;
|
@@ -108,7 +108,7 @@ static VALUE load_value(mm_ipc *i_mm, VALUE _offset) {
|
|
108
108
|
return DBL2NUM(value);
|
109
109
|
}
|
110
110
|
|
111
|
-
|
111
|
+
uint32_t load_used(mm_ipc *i_mm) {
|
112
112
|
uint32_t used = *((uint32_t *)i_mm->t->addr);
|
113
113
|
|
114
114
|
if (used == 0) {
|
@@ -117,7 +117,9 @@ inline uint32_t load_used(mm_ipc *i_mm) {
|
|
117
117
|
return used;
|
118
118
|
}
|
119
119
|
|
120
|
-
|
120
|
+
void save_used(mm_ipc *i_mm, uint32_t used) {
|
121
|
+
*((uint32_t *)i_mm->t->addr) = used;
|
122
|
+
}
|
121
123
|
|
122
124
|
static VALUE initialize_entry(mm_ipc *i_mm, VALUE positions, VALUE key, VALUE value) {
|
123
125
|
if (i_mm->t->flag & MM_FROZEN) {
|
data/lib/fast_mmaped_file.bundle
CHANGED
Binary file
|