anchor.diff:      exit(not_implemented(get_revs_limit, [Db])).
       %% couch_db:get_revs_limit(Db).
   
  -
  +open_doc_revs(#db{filepath = undefined} = Db, <<"_design/",_/binary>> = DocId, Revs, Options) ->
  +    with_subdb(Db, <<"master">>,
  +               fun (RealDb) ->
  +                       couch_db:open_doc_revs(RealDb, DocId, Revs, Options)
  +               end);
  +open_doc_revs(#db{filepath = undefined} = Db, DocId, Revs, Options) ->
  +    exit(not_implemented(open_doc_revs, [Db, DocId, Revs, Options]));
   open_doc_revs(Db, DocId, Revs, Options) ->
  -    case is_couchbase_db(Db#db.name) of
  -        false -> couch_db:open_doc_revs(Db, DocId, Revs, Options)
  -    end.
  -
  -
  +    couch_db:open_doc_revs(Db, DocId, Revs, Options).
  +
  +open_doc(#db{filepath = undefined} = Db, <<"_design/",_/binary>> = DocId, Options) ->
  +    with_subdb(Db, <<"master">>,
  +               fun (RealDb) ->
  +                       couch_db:open_doc(RealDb, DocId, Options)
  +               end);
  +open_doc(#db{filepath = undefined} = Db, DocId, Options) ->
  +    exit(not_implemented(open_doc_revs, [Db, DocId, Options]));
   open_doc(Db, DocId, Options) ->
  -    case is_couchbase_db(Db#db.name) of
  -        false -> couch_db:open_doc(Db, DocId, Options)
  -    end.
  +    couch_db:open_doc(Db, DocId, Options).
  +
   
   make_attachment_fold(_Att, ReqAcceptsAttEnc) ->
       case ReqAcceptsAttEnc of
  
positive.code:     end.
  
  update_doc(Db, Doc, Options) ->
      case is_couchbase_db(Db#db.name) of
          false -> couch_db:update_doc(Db, Doc, Options)
      end.
  
  update_doc(Db, Doc, Options, UpdateType) ->
      case is_couchbase_db(Db#db.name) of
          false -> couch_db:update_doc(Db, Doc, Options, UpdateType)
      end.
  
  ensure_full_commit(Db, RequiredSeq) ->
      UpdateSeq = couch_db:get_update_seq(Db),
      CommittedSeq = couch_db:get_committed_update_seq(Db),
  
negative.code: 
  -spec all_databases() -> {ok, [binary()]}.
  all_databases() ->
      {ok, DBs} = couch_server:all_databases(),
      {ok, DBs ++ [?l2b(Name) || Name <- ns_bucket:get_bucket_names(membase)]}.
  
  task_status_all() ->
      %% TODO: why ?
      couch_task_status:all().
  
  restart_core_server() ->
  