Show
Ignore:
Timestamp:
08/16/10 20:39:35 (21 months ago)
Author:
Antti-Juhani Kaijanaho <antti-juhani@…>
Children:
563ece2aeca700b9245bc2ac709c7fd346fea911
Parents:
994811461679afe70ab81e079fd87191d609be9d
git-committer:
Antti-Juhani Kaijanaho <antti-juhani@…> (08/16/10 20:39:35)
Message:

[db::user,db::db] Update user data by parsing the new record, not directly

Signed-off-by: Antti-Juhani Kaijanaho <antti-juhani@…>

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • db/db.hh

    r19beb87 r5d836bd  
    105105                } 
    106106 
    107                 void update_users_email(boost::shared_ptr<user> u, 
    108                                         std::string od, std::string nw) { 
    109                         boost::lock_guard<boost::recursive_mutex> lg(mt); 
    110                         if (users_email[od] == u) users_email[od].reset(); 
    111                         users_email[nw] = u; 
    112                 } 
    113  
    114107                boost::shared_ptr<role> create_role(std::string name, 
    115108                                                    std::string description); 
     
    145138                void do_article(db_detail::db_reader &, std::string); 
    146139                void do_role(db_detail::db_reader &, std::string); 
     140                void read_record(db_detail::db_reader &dr, 
     141                                 boost::posix_time::ptime); 
    147142                void register_role(boost::shared_ptr<role>); 
    148143        };