From 407ffb8c91d7ec961b905f381fcac7db0344ecd2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Piotr=20Ma=C5=9Blanka?= <piotr.maslanka@henrietta.com.pl>
Date: Thu, 10 Dec 2020 16:46:45 +0100
Subject: [PATCH] added `TimeSeries.descriptor_based_access`

---
 README.md          | 1 +
 setup.py           | 2 +-
 tempsdb/series.pxd | 2 +-
 tempsdb/series.pyx | 2 +-
 4 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/README.md b/README.md
index 01825e0..dd6ceaa 100644
--- a/README.md
+++ b/README.md
@@ -30,6 +30,7 @@ You will need to have both snakehouse and satella installed.
 
 * more error conditions during mmap will be supported as well
 * ENOMEM will be correctly handled during resize operation
+* added `TimeSeries.descriptor_based_access`
 
 ## v0.4.3
 
diff --git a/setup.py b/setup.py
index 5c0e74d..f1b34b3 100644
--- a/setup.py
+++ b/setup.py
@@ -28,7 +28,7 @@ if 'CI' in os.environ:
 
 
 setup(name='tempsdb',
-      version='0.4.4a3',
+      version='0.4.4a4',
       packages=['tempsdb'],
       install_requires=['satella>=2.14.23', 'ujson'],
       ext_modules=build([Multibuild('tempsdb', find_pyx('tempsdb')), ],
diff --git a/tempsdb/series.pxd b/tempsdb/series.pxd
index e31c3f7..d6f32b3 100644
--- a/tempsdb/series.pxd
+++ b/tempsdb/series.pxd
@@ -14,7 +14,7 @@ cdef class TimeSeries:
         readonly unsigned int block_size
         readonly unsigned long long last_entry_ts
         unsigned int page_size
-        bint descriptor_based_access
+        readonly bint descriptor_based_access
         list chunks
         dict refs_chunks        # type: tp.Dict[int, int]
         dict open_chunks        # type: tp.Dict[int, Chunk]
diff --git a/tempsdb/series.pyx b/tempsdb/series.pyx
index 0fcefed..86a489d 100644
--- a/tempsdb/series.pyx
+++ b/tempsdb/series.pyx
@@ -18,7 +18,7 @@ cdef class TimeSeries:
     :ivar last_entry_synced: timestamp of the last synchronized entry (int)
     :ivar block_size: size of the writable block of data (int)
     :ivar path: path to the directory containing the series (str)
-
+    :ivar descriptor_based_access: are all chunks using descriptor-based access? (bool)
     :ivar name: name of the series (str)
     """
     cpdef tuple get_current_value(self):
-- 
GitLab