aboutsummaryrefslogtreecommitdiffstats
path: root/library/python/mlockall/__init__.py
diff options
context:
space:
mode:
authorvitalyisaev <vitalyisaev@ydb.tech>2023-11-30 13:26:22 +0300
committervitalyisaev <vitalyisaev@ydb.tech>2023-11-30 15:44:45 +0300
commit0a98fece5a9b54f16afeb3a94b3eb3105e9c3962 (patch)
tree291d72dbd7e9865399f668c84d11ed86fb190bbf /library/python/mlockall/__init__.py
parentcb2c8d75065e5b3c47094067cb4aa407d4813298 (diff)
downloadydb-0a98fece5a9b54f16afeb3a94b3eb3105e9c3962.tar.gz
YQ Connector:Use docker-compose in integrational tests
Diffstat (limited to 'library/python/mlockall/__init__.py')
-rw-r--r--library/python/mlockall/__init__.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/library/python/mlockall/__init__.py b/library/python/mlockall/__init__.py
new file mode 100644
index 0000000000..4d867d692e
--- /dev/null
+++ b/library/python/mlockall/__init__.py
@@ -0,0 +1,10 @@
+import sys
+
+
+def mlockall_current():
+ if not sys.platform.startswith('linux'):
+ return -1
+
+ import library.python.mlockall.mlockall as ml
+
+ return ml.mlockall_current()