]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: period get does not require specifying period id
authorYehuda Sadeh <yehuda@redhat.com>
Wed, 14 Oct 2015 21:33:35 +0000 (14:33 -0700)
committerYehuda Sadeh <yehuda@redhat.com>
Fri, 12 Feb 2016 00:13:12 +0000 (16:13 -0800)
Can return the current period

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/rgw/rgw_admin.cc

index 6df15e6ee2dba411be220ca138bb3d835dccbfb1..17064377ca4554c00ba385f6668598daa3f1996c 100644 (file)
@@ -1860,10 +1860,6 @@ int main(int argc, char **argv)
       break;
     case OPT_PERIOD_GET:
       {
-       if (period_id.empty()) {
-         cerr << "missing period id" << std::endl;
-         return -EINVAL;
-       }
        epoch_t epoch = 0;
        if (!period_epoch.empty()) {
          epoch = atoi(period_epoch.c_str());