Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions src/db/collection.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1054,7 +1054,7 @@ Status CollectionImpl::validate(const std::string &column,
}
if (schema_->has_field(schema->name())) {
return Status::InvalidArgument("column already exists: ",
schema->name());
schema->name());
}

auto s = schema->validate();
Expand Down Expand Up @@ -1448,8 +1448,8 @@ Result<WriteResults> CollectionImpl::write_impl(std::vector<Doc> &docs,
// validate write batch size
if (docs.size() > kMaxWriteBatchSize) {
CHECK_RETURN_STATUS_EXPECTED(Status::InvalidArgument(
"Too many docs: ", docs.size(),
" exceeds max write batch size ", kMaxWriteBatchSize));
"Too many docs: ", docs.size(), " exceeds max write batch size of ",
kMaxWriteBatchSize));
Comment thread
feihongxu0824 marked this conversation as resolved.
}

// validate docs
Expand Down Expand Up @@ -1830,8 +1830,7 @@ Status CollectionImpl::acquire_file_lock(bool create) {

if (create) {
if (!lock_file_.create(lock_file_path.c_str(), 0)) {
return Status::InternalError("Can't create lock file: ",
lock_file_path);
return Status::InternalError("Can't create lock file: ", lock_file_path);
}
} else {
if (!lock_file_.open(lock_file_path.c_str(), false)) {
Expand Down
Loading