Is there any problem if modify to create op from touch op?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi everyone,
     I am learning ceph, in src/osd/ECTransaction.cc line 573 


if (rollback_extents.empty()) {
   for (auto &&st : *transactions) {
       st.second.touch(
         coll_t(spg_t(pgid, st.first)),
         ghobject_t(oid, entry->version.version, st.first));
    }
}
     If touch , it will search the storedb to judge the onode if exists. It is very time consuming when there is large objs in the storedb. 
The result of my debug is the ghobject_t is not exists everytime after traverses the storedb, because of  the
 entry->version.version is ++.
    so if modify to create ,can reduce the latency of writeio £¬do not need to   traverses the storedb”£ so £¬is there any other case ?and Introducing problems?  I think entry->version.version is ++ has indicated it is a new ghobject_t.
_______________________________________________
ceph-users mailing list -- ceph-users@xxxxxxx
To unsubscribe send an email to ceph-users-leave@xxxxxxx




[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux