Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e898335b8d | ||
|
|
e7869611fa | ||
|
|
e1c2500b60 | ||
|
|
42cf3a11df | ||
|
|
4d9293f0e9 | ||
|
|
7a13f85ae2 | ||
|
|
fc219b8602 |
+1
-1
@@ -2,6 +2,6 @@ cmake_minimum_required(VERSION 2.8.12)
|
|||||||
|
|
||||||
project(vitastor)
|
project(vitastor)
|
||||||
|
|
||||||
set(VERSION "1.7.0")
|
set(VERSION "1.7.1")
|
||||||
|
|
||||||
add_subdirectory(src)
|
add_subdirectory(src)
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
VERSION ?= v1.7.0
|
VERSION ?= v1.7.1
|
||||||
|
|
||||||
all: build push
|
all: build push
|
||||||
|
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ spec:
|
|||||||
capabilities:
|
capabilities:
|
||||||
add: ["SYS_ADMIN"]
|
add: ["SYS_ADMIN"]
|
||||||
allowPrivilegeEscalation: true
|
allowPrivilegeEscalation: true
|
||||||
image: vitalif/vitastor-csi:v1.7.0
|
image: vitalif/vitastor-csi:v1.7.1
|
||||||
args:
|
args:
|
||||||
- "--node=$(NODE_ID)"
|
- "--node=$(NODE_ID)"
|
||||||
- "--endpoint=$(CSI_ENDPOINT)"
|
- "--endpoint=$(CSI_ENDPOINT)"
|
||||||
|
|||||||
@@ -121,7 +121,7 @@ spec:
|
|||||||
privileged: true
|
privileged: true
|
||||||
capabilities:
|
capabilities:
|
||||||
add: ["SYS_ADMIN"]
|
add: ["SYS_ADMIN"]
|
||||||
image: vitalif/vitastor-csi:v1.7.0
|
image: vitalif/vitastor-csi:v1.7.1
|
||||||
args:
|
args:
|
||||||
- "--node=$(NODE_ID)"
|
- "--node=$(NODE_ID)"
|
||||||
- "--endpoint=$(CSI_ENDPOINT)"
|
- "--endpoint=$(CSI_ENDPOINT)"
|
||||||
|
|||||||
+1
-1
@@ -5,7 +5,7 @@ package vitastor
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
vitastorCSIDriverName = "csi.vitastor.io"
|
vitastorCSIDriverName = "csi.vitastor.io"
|
||||||
vitastorCSIDriverVersion = "1.7.0"
|
vitastorCSIDriverVersion = "1.7.1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Config struct fills the parameters of request or user input
|
// Config struct fills the parameters of request or user input
|
||||||
|
|||||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
vitastor (1.7.0-1) unstable; urgency=medium
|
vitastor (1.7.1-1) unstable; urgency=medium
|
||||||
|
|
||||||
* Bugfixes
|
* Bugfixes
|
||||||
|
|
||||||
|
|||||||
@@ -107,16 +107,17 @@ If a PG is active it can also have any number of the following additional states
|
|||||||
|
|
||||||
## Removing a healthy disk
|
## Removing a healthy disk
|
||||||
|
|
||||||
Befor removing a healthy disk from the cluster set its OSD weight(s) to 0 to
|
Before removing a healthy disk from the cluster set its OSD weight(s) to 0 to
|
||||||
move data away. To do that, add `"reweight":0` to etcd key `/vitastor/config/osd/<OSD_NUMBER>`.
|
move data away. To do that, run `vitastor-cli modify-osd --reweight 0 <НОМЕР_OSD>`.
|
||||||
For example:
|
|
||||||
|
Then wait until rebalance finishes and remove OSD by running `vitastor-disk purge /dev/vitastor/osdN-data`.
|
||||||
|
|
||||||
|
Zero weight can also be put manually into etcd key `/vitastor/config/osd/<НОМЕР_OSD>`, for example:
|
||||||
|
|
||||||
```
|
```
|
||||||
etcdctl --endpoints=http://1.1.1.1:2379/v3 put /vitastor/config/osd/1 '{"reweight":0}'
|
etcdctl --endpoints=http://1.1.1.1:2379/v3 put /vitastor/config/osd/1 '{"reweight":0}'
|
||||||
```
|
```
|
||||||
|
|
||||||
Then wait until rebalance finishes and remove OSD by running `vitastor-disk purge /dev/vitastor/osdN-data`.
|
|
||||||
|
|
||||||
## Removing a failed disk
|
## Removing a failed disk
|
||||||
|
|
||||||
If a disk is already dead, its OSD(s) are likely already stopped.
|
If a disk is already dead, its OSD(s) are likely already stopped.
|
||||||
|
|||||||
@@ -105,14 +105,16 @@ PG должны очень быстро переходить из них в др
|
|||||||
## Удаление исправного диска
|
## Удаление исправного диска
|
||||||
|
|
||||||
Перед удалением исправного диска из кластера установите его OSD вес в 0, чтобы убрать с него данные.
|
Перед удалением исправного диска из кластера установите его OSD вес в 0, чтобы убрать с него данные.
|
||||||
Для этого добавьте в ключ `/vitastor/config/osd/<НОМЕР_OSD>` в etcd значение `"reweight":0`, например:
|
Для этого выполните команду `vitastor-cli modify-osd --reweight 0 <НОМЕР_OSD>`.
|
||||||
|
|
||||||
|
Дождитесь завершения перебалансировки данных, после чего удалите OSD командой `vitastor-disk purge /dev/vitastor/osdN-data`.
|
||||||
|
|
||||||
|
Также вес 0 можно прописать вручную прямо в etcd в ключ `/vitastor/config/osd/<НОМЕР_OSD>`, например:
|
||||||
|
|
||||||
```
|
```
|
||||||
etcdctl --endpoints=http://1.1.1.1:2379/v3 put /vitastor/config/osd/1 '{"reweight":0}'
|
etcdctl --endpoints=http://1.1.1.1:2379/v3 put /vitastor/config/osd/1 '{"reweight":0}'
|
||||||
```
|
```
|
||||||
|
|
||||||
Дождитесь завершения ребаланса, после чего удалите OSD командой `vitastor-disk purge /dev/vitastor/osdN-data`.
|
|
||||||
|
|
||||||
## Удаление неисправного диска
|
## Удаление неисправного диска
|
||||||
|
|
||||||
Если диск уже умер, его OSD, скорее всего, уже будет/будут остановлен(ы).
|
Если диск уже умер, его OSD, скорее всего, уже будет/будут остановлен(ы).
|
||||||
|
|||||||
@@ -26,6 +26,8 @@ It supports the following commands:
|
|||||||
- [rm-osd](#rm-osd)
|
- [rm-osd](#rm-osd)
|
||||||
- [osd-tree](#osd-tree)
|
- [osd-tree](#osd-tree)
|
||||||
- [ls-osd](#ls-osd)
|
- [ls-osd](#ls-osd)
|
||||||
|
- [modify-osd](#modify-osd)
|
||||||
|
- [pg-list](#pg-list)
|
||||||
- [create-pool](#create-pool)
|
- [create-pool](#create-pool)
|
||||||
- [modify-pool](#modify-pool)
|
- [modify-pool](#modify-pool)
|
||||||
- [ls-pools](#ls-pools)
|
- [ls-pools](#ls-pools)
|
||||||
@@ -307,6 +309,24 @@ OSD PARENT UP SIZE USED% TAGS WEIGHT BLOCK BITMAP
|
|||||||
|
|
||||||
Set OSD reweight, tags or noout flag. See detail description in [OSD config documentation](../config.pool.en.md#osd-settings).
|
Set OSD reweight, tags or noout flag. See detail description in [OSD config documentation](../config.pool.en.md#osd-settings).
|
||||||
|
|
||||||
|
## pg-list
|
||||||
|
|
||||||
|
`vitastor-cli pg-list|pg-ls|list-pg|ls-pg|ls-pgs [OPTIONS] [state1+state2] [^state3] [...]`
|
||||||
|
|
||||||
|
List PGs with any of listed state filters (^ or ! in the beginning is negation). Options:
|
||||||
|
|
||||||
|
```
|
||||||
|
--pool <pool name or number> Only list PGs of the given pool.
|
||||||
|
--min <min pg number> Only list PGs with number >= min.
|
||||||
|
--max <max pg number> Only list PGs with number <= max.
|
||||||
|
```
|
||||||
|
|
||||||
|
Examples:
|
||||||
|
|
||||||
|
`vitastor-cli pg-list active+degraded`
|
||||||
|
|
||||||
|
`vitastor-cli pg-list ^active`
|
||||||
|
|
||||||
## create-pool
|
## create-pool
|
||||||
|
|
||||||
`vitastor-cli create-pool|pool-create <name> (-s <pg_size>|--ec <N>+<K>) -n <pg_count> [OPTIONS]`
|
`vitastor-cli create-pool|pool-create <name> (-s <pg_size>|--ec <N>+<K>) -n <pg_count> [OPTIONS]`
|
||||||
|
|||||||
@@ -25,6 +25,8 @@ vitastor-cli - интерфейс командной строки для адм
|
|||||||
- [rm-osd](#rm-osd)
|
- [rm-osd](#rm-osd)
|
||||||
- [osd-tree](#osd-tree)
|
- [osd-tree](#osd-tree)
|
||||||
- [ls-osd](#ls-osd)
|
- [ls-osd](#ls-osd)
|
||||||
|
- [modify-osd](#modify-osd)
|
||||||
|
- [pg-list](#pg-list)
|
||||||
- [create-pool](#create-pool)
|
- [create-pool](#create-pool)
|
||||||
- [modify-pool](#modify-pool)
|
- [modify-pool](#modify-pool)
|
||||||
- [ls-pools](#ls-pools)
|
- [ls-pools](#ls-pools)
|
||||||
@@ -324,6 +326,25 @@ OSD PARENT UP SIZE USED% TAGS WEIGHT BLOCK BITMAP
|
|||||||
|
|
||||||
Установить вес OSD, теги или флаг noout. Смотрите подробное описание в [документации настроек OSD](../config.pool.ru.md#настройки-osd).
|
Установить вес OSD, теги или флаг noout. Смотрите подробное описание в [документации настроек OSD](../config.pool.ru.md#настройки-osd).
|
||||||
|
|
||||||
|
## pg-list
|
||||||
|
|
||||||
|
`vitastor-cli pg-list|pg-ls|list-pg|ls-pg|ls-pgs [OPTIONS] [state1+state2] [^state3] [...]`
|
||||||
|
|
||||||
|
Вывести список PG с состояними, удовлетворяющими любому из переданных фильтров (^ или !
|
||||||
|
в начале фильтра означает отрицание). Опции:
|
||||||
|
|
||||||
|
```
|
||||||
|
--pool <pool name or number> Only list PGs of the given pool.
|
||||||
|
--min <min pg number> Only list PGs with number >= min.
|
||||||
|
--max <max pg number> Only list PGs with number <= max.
|
||||||
|
```
|
||||||
|
|
||||||
|
Примеры:
|
||||||
|
|
||||||
|
`vitastor-cli pg-list active+degraded`
|
||||||
|
|
||||||
|
`vitastor-cli pg-list ^active`
|
||||||
|
|
||||||
## create-pool
|
## create-pool
|
||||||
|
|
||||||
`vitastor-cli create-pool|pool-create <name> (-s <pg_size>|--ec <N>+<K>) -n <pg_count> [OPTIONS]`
|
`vitastor-cli create-pool|pool-create <name> (-s <pg_size>|--ec <N>+<K>) -n <pg_count> [OPTIONS]`
|
||||||
|
|||||||
+3
-2
@@ -22,12 +22,13 @@ class Mon
|
|||||||
{
|
{
|
||||||
static async run_forever(config)
|
static async run_forever(config)
|
||||||
{
|
{
|
||||||
|
let mergedConfig = config;
|
||||||
if (fs.existsSync(config.config_path||'/etc/vitastor/vitastor.conf'))
|
if (fs.existsSync(config.config_path||'/etc/vitastor/vitastor.conf'))
|
||||||
{
|
{
|
||||||
const fileConfig = JSON.parse(fs.readFileSync(config.config_path||'/etc/vitastor/vitastor.conf', { encoding: 'utf-8' }));
|
const fileConfig = JSON.parse(fs.readFileSync(config.config_path||'/etc/vitastor/vitastor.conf', { encoding: 'utf-8' }));
|
||||||
config = { ...fileConfig, config };
|
mergedConfig = { ...fileConfig, ...config };
|
||||||
}
|
}
|
||||||
let antietcd = await AntiEtcdAdapter.start_antietcd(config);
|
let antietcd = await AntiEtcdAdapter.start_antietcd(mergedConfig);
|
||||||
let mon;
|
let mon;
|
||||||
const run = () =>
|
const run = () =>
|
||||||
{
|
{
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "vitastor-mon",
|
"name": "vitastor-mon",
|
||||||
"version": "1.7.0",
|
"version": "1.7.1",
|
||||||
"description": "Vitastor SDS monitor service",
|
"description": "Vitastor SDS monitor service",
|
||||||
"main": "mon-main.js",
|
"main": "mon-main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ from cinder.volume import configuration
|
|||||||
from cinder.volume import driver
|
from cinder.volume import driver
|
||||||
from cinder.volume import volume_utils
|
from cinder.volume import volume_utils
|
||||||
|
|
||||||
VERSION = '1.7.0'
|
VERSION = '1.7.1'
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ index c9baeda639..85e1df5a56 100644
|
|||||||
description: 'OpenGL support')
|
description: 'OpenGL support')
|
||||||
option('rdma', type : 'feature', value : 'auto',
|
option('rdma', type : 'feature', value : 'auto',
|
||||||
diff --git a/qapi/block-core.json b/qapi/block-core.json
|
diff --git a/qapi/block-core.json b/qapi/block-core.json
|
||||||
index ca390c5700..8f11ae9fa5 100644
|
index ca390c5700..d2dbaeb279 100644
|
||||||
--- a/qapi/block-core.json
|
--- a/qapi/block-core.json
|
||||||
+++ b/qapi/block-core.json
|
+++ b/qapi/block-core.json
|
||||||
@@ -3201,7 +3201,7 @@
|
@@ -3201,7 +3201,7 @@
|
||||||
@@ -120,7 +120,7 @@ index ca390c5700..8f11ae9fa5 100644
|
|||||||
'virtio-blk-vfio-pci':
|
'virtio-blk-vfio-pci':
|
||||||
{ 'type': 'BlockdevOptionsVirtioBlkVfioPci',
|
{ 'type': 'BlockdevOptionsVirtioBlkVfioPci',
|
||||||
'if': 'CONFIG_BLKIO' },
|
'if': 'CONFIG_BLKIO' },
|
||||||
@@ -5148,6 +5171,17 @@
|
@@ -5148,6 +5171,20 @@
|
||||||
'*cluster-size' : 'size',
|
'*cluster-size' : 'size',
|
||||||
'*encrypt' : 'RbdEncryptionCreateOptions' } }
|
'*encrypt' : 'RbdEncryptionCreateOptions' } }
|
||||||
|
|
||||||
@@ -129,6 +129,9 @@ index ca390c5700..8f11ae9fa5 100644
|
|||||||
+#
|
+#
|
||||||
+# Driver specific image creation options for Vitastor.
|
+# Driver specific image creation options for Vitastor.
|
||||||
+#
|
+#
|
||||||
|
+# @location: Where to store the new image file. This location cannot
|
||||||
|
+# point to a snapshot.
|
||||||
|
+#
|
||||||
+# @size: Size of the virtual disk in bytes
|
+# @size: Size of the virtual disk in bytes
|
||||||
+##
|
+##
|
||||||
+{ 'struct': 'BlockdevCreateOptionsVitastor',
|
+{ 'struct': 'BlockdevCreateOptionsVitastor',
|
||||||
@@ -138,7 +141,7 @@ index ca390c5700..8f11ae9fa5 100644
|
|||||||
##
|
##
|
||||||
# @BlockdevVmdkSubformat:
|
# @BlockdevVmdkSubformat:
|
||||||
#
|
#
|
||||||
@@ -5370,6 +5404,7 @@
|
@@ -5370,6 +5407,7 @@
|
||||||
'ssh': 'BlockdevCreateOptionsSsh',
|
'ssh': 'BlockdevCreateOptionsSsh',
|
||||||
'vdi': 'BlockdevCreateOptionsVdi',
|
'vdi': 'BlockdevCreateOptionsVdi',
|
||||||
'vhdx': 'BlockdevCreateOptionsVhdx',
|
'vhdx': 'BlockdevCreateOptionsVhdx',
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ index 0a99a059ec..16dc440118 100644
|
|||||||
description: 'OpenGL support')
|
description: 'OpenGL support')
|
||||||
option('rdma', type : 'feature', value : 'auto',
|
option('rdma', type : 'feature', value : 'auto',
|
||||||
diff --git a/qapi/block-core.json b/qapi/block-core.json
|
diff --git a/qapi/block-core.json b/qapi/block-core.json
|
||||||
index 746d1694c2..fb7aa4423b 100644
|
index 746d1694c2..199a146a0b 100644
|
||||||
--- a/qapi/block-core.json
|
--- a/qapi/block-core.json
|
||||||
+++ b/qapi/block-core.json
|
+++ b/qapi/block-core.json
|
||||||
@@ -3203,7 +3203,7 @@
|
@@ -3203,7 +3203,7 @@
|
||||||
@@ -120,7 +120,7 @@ index 746d1694c2..fb7aa4423b 100644
|
|||||||
'virtio-blk-vfio-pci':
|
'virtio-blk-vfio-pci':
|
||||||
{ 'type': 'BlockdevOptionsVirtioBlkVfioPci',
|
{ 'type': 'BlockdevOptionsVirtioBlkVfioPci',
|
||||||
'if': 'CONFIG_BLKIO' },
|
'if': 'CONFIG_BLKIO' },
|
||||||
@@ -5180,6 +5203,17 @@
|
@@ -5180,6 +5203,20 @@
|
||||||
'*cluster-size' : 'size',
|
'*cluster-size' : 'size',
|
||||||
'*encrypt' : 'RbdEncryptionCreateOptions' } }
|
'*encrypt' : 'RbdEncryptionCreateOptions' } }
|
||||||
|
|
||||||
@@ -129,6 +129,9 @@ index 746d1694c2..fb7aa4423b 100644
|
|||||||
+#
|
+#
|
||||||
+# Driver specific image creation options for Vitastor.
|
+# Driver specific image creation options for Vitastor.
|
||||||
+#
|
+#
|
||||||
|
+# @location: Where to store the new image file. This location cannot
|
||||||
|
+# point to a snapshot.
|
||||||
|
+#
|
||||||
+# @size: Size of the virtual disk in bytes
|
+# @size: Size of the virtual disk in bytes
|
||||||
+##
|
+##
|
||||||
+{ 'struct': 'BlockdevCreateOptionsVitastor',
|
+{ 'struct': 'BlockdevCreateOptionsVitastor',
|
||||||
@@ -138,7 +141,7 @@ index 746d1694c2..fb7aa4423b 100644
|
|||||||
##
|
##
|
||||||
# @BlockdevVmdkSubformat:
|
# @BlockdevVmdkSubformat:
|
||||||
#
|
#
|
||||||
@@ -5402,6 +5436,7 @@
|
@@ -5402,6 +5439,7 @@
|
||||||
'ssh': 'BlockdevCreateOptionsSsh',
|
'ssh': 'BlockdevCreateOptionsSsh',
|
||||||
'vdi': 'BlockdevCreateOptionsVdi',
|
'vdi': 'BlockdevCreateOptionsVdi',
|
||||||
'vhdx': 'BlockdevCreateOptionsVhdx',
|
'vhdx': 'BlockdevCreateOptionsVhdx',
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
Name: vitastor
|
Name: vitastor
|
||||||
Version: 1.7.0
|
Version: 1.7.1
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Vitastor, a fast software-defined clustered block storage
|
Summary: Vitastor, a fast software-defined clustered block storage
|
||||||
|
|
||||||
License: Vitastor Network Public License 1.1
|
License: Vitastor Network Public License 1.1
|
||||||
URL: https://vitastor.io/
|
URL: https://vitastor.io/
|
||||||
Source0: vitastor-1.7.0.el7.tar.gz
|
Source0: vitastor-1.7.1.el7.tar.gz
|
||||||
|
|
||||||
BuildRequires: liburing-devel >= 0.6
|
BuildRequires: liburing-devel >= 0.6
|
||||||
BuildRequires: gperftools-devel
|
BuildRequires: gperftools-devel
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
Name: vitastor
|
Name: vitastor
|
||||||
Version: 1.7.0
|
Version: 1.7.1
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Vitastor, a fast software-defined clustered block storage
|
Summary: Vitastor, a fast software-defined clustered block storage
|
||||||
|
|
||||||
License: Vitastor Network Public License 1.1
|
License: Vitastor Network Public License 1.1
|
||||||
URL: https://vitastor.io/
|
URL: https://vitastor.io/
|
||||||
Source0: vitastor-1.7.0.el8.tar.gz
|
Source0: vitastor-1.7.1.el8.tar.gz
|
||||||
|
|
||||||
BuildRequires: liburing-devel >= 0.6
|
BuildRequires: liburing-devel >= 0.6
|
||||||
BuildRequires: gperftools-devel
|
BuildRequires: gperftools-devel
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
Name: vitastor
|
Name: vitastor
|
||||||
Version: 1.7.0
|
Version: 1.7.1
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Vitastor, a fast software-defined clustered block storage
|
Summary: Vitastor, a fast software-defined clustered block storage
|
||||||
|
|
||||||
License: Vitastor Network Public License 1.1
|
License: Vitastor Network Public License 1.1
|
||||||
URL: https://vitastor.io/
|
URL: https://vitastor.io/
|
||||||
Source0: vitastor-1.7.0.el9.tar.gz
|
Source0: vitastor-1.7.1.el9.tar.gz
|
||||||
|
|
||||||
BuildRequires: liburing-devel >= 0.6
|
BuildRequires: liburing-devel >= 0.6
|
||||||
BuildRequires: gperftools-devel
|
BuildRequires: gperftools-devel
|
||||||
|
|||||||
+1
-1
@@ -19,7 +19,7 @@ if("${CMAKE_INSTALL_PREFIX}" MATCHES "^/usr/local/?$")
|
|||||||
set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}")
|
set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_definitions(-DVERSION="1.7.0")
|
add_definitions(-DVERSION="1.7.1")
|
||||||
add_definitions(-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -Wno-sign-compare -Wno-comment -Wno-parentheses -Wno-pointer-arith -fdiagnostics-color=always -fno-omit-frame-pointer -I ${CMAKE_SOURCE_DIR}/src)
|
add_definitions(-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -Wno-sign-compare -Wno-comment -Wno-parentheses -Wno-pointer-arith -fdiagnostics-color=always -fno-omit-frame-pointer -I ${CMAKE_SOURCE_DIR}/src)
|
||||||
add_link_options(-fno-omit-frame-pointer)
|
add_link_options(-fno-omit-frame-pointer)
|
||||||
if (${WITH_ASAN})
|
if (${WITH_ASAN})
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@
|
|||||||
|
|
||||||
Name: Vitastor
|
Name: Vitastor
|
||||||
Description: Vitastor client library
|
Description: Vitastor client library
|
||||||
Version: 1.7.0
|
Version: 1.7.1
|
||||||
Libs: -L${libdir} -lvitastor_client
|
Libs: -L${libdir} -lvitastor_client
|
||||||
Cflags: -I${includedir}
|
Cflags: -I${includedir}
|
||||||
|
|
||||||
|
|||||||
@@ -119,7 +119,7 @@ resume_1:
|
|||||||
{ "result", "LESS" },
|
{ "result", "LESS" },
|
||||||
{ "mod_revision", osd_cfg_mod_rev+1 },
|
{ "mod_revision", osd_cfg_mod_rev+1 },
|
||||||
});
|
});
|
||||||
if (osd_cfg.size())
|
if (!osd_cfg.size())
|
||||||
{
|
{
|
||||||
success.push_back(json11::Json::object {
|
success.push_back(json11::Json::object {
|
||||||
{ "request_delete_range", json11::Json::object {
|
{ "request_delete_range", json11::Json::object {
|
||||||
|
|||||||
+1
-1
@@ -501,7 +501,7 @@ void kv_block_t::dump(int base_level)
|
|||||||
|
|
||||||
void kv_db_t::open(inode_t inode_id, json11::Json cfg, std::function<void(int)> cb)
|
void kv_db_t::open(inode_t inode_id, json11::Json cfg, std::function<void(int)> cb)
|
||||||
{
|
{
|
||||||
if (block_cache.size() > 0 || inode_id)
|
if (block_cache.size() > 0 || this->inode_id)
|
||||||
{
|
{
|
||||||
cb(-EINVAL);
|
cb(-EINVAL);
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user