Skip to content

Commit

Permalink
Merge branch 'feat-cap-shared' into pickle-support-for-python-operator
Browse files Browse the repository at this point in the history
  • Loading branch information
TennyZhuang committed Nov 16, 2024
2 parents 5021d23 + 5e67769 commit 13ef152
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions bindings/c/include/opendal.h
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,10 @@ typedef struct opendal_capability {
* If it is not set, this will be zero
*/
uintptr_t batch_max_operations;
/**
* If operator supports shared.
*/
bool shared;
/**
* If operator supports blocking.
*/
Expand Down
2 changes: 1 addition & 1 deletion bindings/java/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ fn make_operator_info<'a>(env: &mut JNIEnv<'a>, info: OperatorInfo) -> Result<JO
fn make_capability<'a>(env: &mut JNIEnv<'a>, cap: Capability) -> Result<JObject<'a>> {
let capability = env.new_object(
"org/apache/opendal/Capability",
"(ZZZZZZZZZZZZZZZJJZZZZZZZZZZZZZZJZ)V",
"(ZZZZZZZZZZZZZZZJJZZZZZZZZZZZZZZJZZ)V",
&[
JValue::Bool(cap.stat as jboolean),
JValue::Bool(cap.stat_with_if_match as jboolean),
Expand Down

0 comments on commit 13ef152

Please sign in to comment.