lib/deltas: Use fastpath for regfile writes for bare-user-only
authorColin Walters <walters@verbum.org>
Sat, 14 Oct 2017 00:50:08 +0000 (20:50 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Tue, 17 Oct 2017 15:20:08 +0000 (15:20 +0000)
Noticed this omission while looking at the code while working on another patch.

Closes: #1270
Approved by: jlebon

src/libostree/ostree-repo-static-delta-processing.c

index 84fed6824f5437de0a76ae969af7ff3a21a59d45..6596da8955eda52ff20ea3a73a171fa5824d7948 100644 (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,