Skip to content

Commit

Permalink
Merge pull request #83 from citrusleaf/dev
Browse files Browse the repository at this point in the history
[CLIENT-1708] Fix batch_remove, batch_apply, batch_operate import error.
  • Loading branch information
dwelch-spike committed Apr 18, 2022
2 parents e6929a1 + 46e776d commit 7861eb1
Show file tree
Hide file tree
Showing 9 changed files with 5 additions and 27 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.0.0
7.0.1
14 changes: 0 additions & 14 deletions incompatible.md

This file was deleted.

2 changes: 1 addition & 1 deletion src/main/aerospike.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ static int Aerospike_Clear(PyObject *aerospike)
MOD_INIT(aerospike)
{

const char version[8] = "7.0.0";
const char version[8] = "7.0.1";
// Makes things "thread-safe"
PyEval_InitThreads();
int i = 0;
Expand Down
2 changes: 1 addition & 1 deletion src/main/client/batch_apply.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ static PyObject *AerospikeClient_Batch_Apply_Invoke(
PyObject *br_module = NULL;
PyObject *sys_modules = PyImport_GetModuleDict();

if (PyMapping_HasKeyString(sys_modules, "aerospike_helpers")) {
if (PyMapping_HasKeyString(sys_modules, "aerospike_helpers.batch.records")) {
br_module = PyMapping_GetItemString(sys_modules,
"aerospike_helpers.batch.records");
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/client/batch_operate.c
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ static PyObject *AerospikeClient_Batch_Operate_Invoke(
PyObject *br_module = NULL;
PyObject *sys_modules = PyImport_GetModuleDict();

if (PyMapping_HasKeyString(sys_modules, "aerospike_helpers")) {
if (PyMapping_HasKeyString(sys_modules, "aerospike_helpers.batch.records")) {
br_module = PyMapping_GetItemString(sys_modules,
"aerospike_helpers.batch.records");
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/client/batch_remove.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ static PyObject *AerospikeClient_Batch_Remove_Invoke(
PyObject *br_module = NULL;
PyObject *sys_modules = PyImport_GetModuleDict();

if (PyMapping_HasKeyString(sys_modules, "aerospike_helpers")) {
if (PyMapping_HasKeyString(sys_modules, "aerospike_helpers.batch.records")) {
br_module = PyMapping_GetItemString(sys_modules,
"aerospike_helpers.batch.records");
}
Expand Down
3 changes: 0 additions & 3 deletions test/new_tests/test_batch_apply.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@
sys.exit(1)

from aerospike_helpers import expressions as exp
from aerospike_helpers.batch import records as br
from aerospike_helpers.operations import operations as op
from aerospike_helpers.operations import list_operations as lop
from aerospike import exception as e
from .test_base_class import TestBaseClass
from .as_status_codes import AerospikeStatus
Expand Down
2 changes: 0 additions & 2 deletions test/new_tests/test_batch_operate.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@
sys.exit(1)

from aerospike_helpers import expressions as exp
from aerospike_helpers.batch import records as br
from aerospike_helpers.operations import operations as op
from aerospike_helpers.operations import list_operations as lop
from aerospike import exception as e
from .test_base_class import TestBaseClass
from .as_status_codes import AerospikeStatus
Expand Down
3 changes: 0 additions & 3 deletions test/new_tests/test_batch_remove.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@
sys.exit(1)

from aerospike_helpers import expressions as exp
from aerospike_helpers.batch import records as br
from aerospike_helpers.operations import operations as op
from aerospike_helpers.operations import list_operations as lop
from aerospike import exception as e
from .test_base_class import TestBaseClass
from .as_status_codes import AerospikeStatus
Expand Down

0 comments on commit 7861eb1

Please sign in to comment.