s4:repl_meta_data: remove unused code
authorStefan Metzmacher <metze@samba.org>
Tue, 8 Sep 2009 10:01:46 +0000 (12:01 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 8 Sep 2009 20:06:07 +0000 (22:06 +0200)
metze

source4/dsdb/samdb/ldb_modules/repl_meta_data.c

index da9087acbf8775edad08ff6965632db58fd0df66..6a2e6f2fc0d2bb6f228e6e8ae73ef7dc99591cf0 100644 (file)
@@ -1079,7 +1079,6 @@ static int replmd_replicated_uptodate_modify(struct replmd_replicated_request *a
        struct ldb_val *nrf_value = NULL;
        struct ldb_message_element *nrf_el = NULL;
        uint32_t i,j,ni=0;
-       uint64_t seq_num;
        bool found = false;
        time_t t = time(NULL);
        NTTIME now;
@@ -1094,16 +1093,6 @@ static int replmd_replicated_uptodate_modify(struct replmd_replicated_request *a
 
        unix_to_nt_time(&now, t);
 
-       /* 
-        * we use the next sequence number for our own highest_usn
-        * because we will do a modify request and this will increment
-        * our highest_usn
-        */
-       ret = ldb_sequence_number(ldb, LDB_SEQ_NEXT, &seq_num);
-       if (ret != LDB_SUCCESS) {
-               return replmd_replicated_request_error(ar, ret);
-       }
-
        /*
         * first create the new replUpToDateVector
         */