From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-2.9 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=unavailable version=3.3.2 X-Original-To: mogilefs-client-public@bogomips.org Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 6DFAA1F814 for ; Wed, 4 Nov 2015 21:43:52 +0000 (UTC) From: Eric Wong To: mogilefs-client-public@bogomips.org Subject: [PATCH] bigfile: lazily require bigfile/filter Date: Wed, 4 Nov 2015 21:43:52 +0000 Message-Id: <20151104214352.9164-1-e@80x24.org> List-Id: None of the bigfile stuff is in common use, so avoid bloating user apps with more of it. --- lib/mogilefs/bigfile.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mogilefs/bigfile.rb b/lib/mogilefs/bigfile.rb index 5fc88fa..c6353a8 100644 --- a/lib/mogilefs/bigfile.rb +++ b/lib/mogilefs/bigfile.rb @@ -26,6 +26,7 @@ module MogileFS::Bigfile # we only decode raw zlib deflated streams that mogtool (unfortunately) # generates. tarballs and gzip(1) are up to to the application to decrypt. if info[:compressed] || opts[:verify] + require 'mogilefs/bigfile/filter' wr_io = MogileFS::Bigfile::Filter.new(wr_io, info, opts) end @@ -85,7 +86,6 @@ module MogileFS::Bigfile rv end end -require "mogilefs/bigfile/filter" __END__ # Copied from mogtool: -- EW