lib/deltas: Use fastpath for regfile writes for bare-user-only

Noticed this omission while looking at the code while working on another patch.

Closes: #1270
Approved by: jlebon
This commit is contained in:
Colin Walters 2017-10-13 20:50:08 -04:00 committed by Atomic Bot
parent 95afe2848d
commit bb05b187b6
1 changed files with 1 additions and 2 deletions

View File

@ -581,8 +581,7 @@ dispatch_open_splice_and_close (OstreeRepo *repo,
/* Fast path for regular files to bare repositories */
if (S_ISREG (state->mode) &&
(repo->mode == OSTREE_REPO_MODE_BARE ||
repo->mode == OSTREE_REPO_MODE_BARE_USER))
_ostree_repo_mode_is_bare (repo->mode))
{
if (!_ostree_repo_open_content_bare (repo, state->checksum,
state->content_size,