Skip to content

Commit

Permalink
Merge pull request #10756 from linuxbox2/fix_gc_interval
Browse files Browse the repository at this point in the history
rgw_file: restore local definition of RGWLibFS gc interval
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
  • Loading branch information
oritwas committed Aug 17, 2016
2 parents 2611cdc + 31936ca commit 8f535ba
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion src/rgw/rgw_file.cc
Expand Up @@ -679,7 +679,7 @@ namespace rgw {
} /* rgw_fh */
} /* event::type::READDIR */
} /* ev */
std::this_thread::sleep_for(gc_interval);
std::this_thread::sleep_for(std::chrono::seconds(120));
} while (! stop);
} /* RGWLibFS::gc */

Expand Down
3 changes: 0 additions & 3 deletions src/rgw/rgw_file.h
Expand Up @@ -687,9 +687,6 @@ namespace rgw {
struct rgw_fs fs;
RGWFileHandle root_fh;

static constexpr std::chrono::seconds gc_interval =
std::chrono::seconds(120);

mutable std::atomic<uint64_t> refcnt;

RGWFileHandle::FHCache fh_cache;
Expand Down

0 comments on commit 8f535ba

Please sign in to comment.