Skip to content

KV backend's writer will not create object with empty content. #1791

@damooo

Description

@damooo

https://github.com/apache/incubator-opendal/blob/2d174fc26cc2d16d17399775035261cd0d68352b/core/src/raw/adapters/kv/backend.rs#L297-L304

As in above snippet, if buffer is empty, it skips insertion of object in store. But returns success. It must create entry with empty content.

May be proper way to differentiate uninitialized buffer from empty buffer is to use Option.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions