Skip to content

Bvar return true not false when failed to read stat #3152

Description

@songqing

Describe the bug
Bvar return -1 not false when failed to read stat

if (butil::read_command_output(oss, cmdbuf) != 0) {
        LOG(ERROR) << "Fail to read memory state";
        return -1;
    }

To Reproduce

Expected behavior
Bvar return false when failed to read stat

Versions
OS:
Compiler:
brpc:
protobuf:

Additional context/screenshots

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions