anchor.diff:      Buckets =
           case Buckets0 of
               [] ->
  -                [list_to_binary(Bucket) ||
  -                    Bucket <- ns_bucket:get_bucket_names(membase)];
  +                [list_to_binary(Name) ||
  +                    {Name, Config} <- ns_bucket:get_buckets(),
  +                    ns_bucket:bucket_type(Config) =:= membase,
  +                    lists:member(node(), ns_bucket:bucket_nodes(Config))];
               _ ->
                   Buckets0
           end,
  
positive.code:                       check_period(Config)
                end,
  
                AllBucketDbs = all_bucket_dbs(BucketName),
  
                %% In certain cases some of the databases might not exists yet
  
negative.code:         true ->
              {missing, R}
      end.
  
  bucket_exists(BucketName) ->
      case ns_bucket:get_bucket_light(binary_to_list(BucketName)) of
          {ok, Config} ->
              (ns_bucket:bucket_type(Config) =:= membase) andalso
                  lists:member(node(), ns_bucket:bucket_nodes(Config));
          not_present ->
              false
      end.
  