This is an automated email from the ASF dual-hosted git repository.
xuanwo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git
The following commit(s) were added to refs/heads/main by this push:
new 5a4979af3 fix(core): Fix capability of services is not set correctly
(#2982)
5a4979af3 is described below
commit 5a4979af3b16b825efc60f36cf7cfe78b2490e89
Author: JLer <[email protected]>
AuthorDate: Thu Aug 31 11:19:54 2023 +0800
fix(core): Fix capability of services is not set correctly (#2982)
---
core/src/raw/adapters/kv/backend.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/core/src/raw/adapters/kv/backend.rs
b/core/src/raw/adapters/kv/backend.rs
index 41c4c6a7d..d10971104 100644
--- a/core/src/raw/adapters/kv/backend.rs
+++ b/core/src/raw/adapters/kv/backend.rs
@@ -69,7 +69,7 @@ impl<S: Adapter> Accessor for Backend<S> {
let mut am: AccessorInfo = self.kv.metadata().into();
am.set_root(&self.root);
- let mut cap = Capability::default();
+ let mut cap = am.native_capability();
if cap.read {
cap.read_can_seek = true;
cap.read_can_next = true;