diff options
author | Dan McGee <dan@archlinux.org> | 2011-06-03 19:06:25 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-06-03 19:06:25 +0200 |
commit | c47d25d74be9ce1fbbfb8577687d9f37ba38d98b (patch) | |
tree | 6f09de2695287954f8f83a6dae22e00463f31e78 /lib/libalpm/be_sync.c | |
parent | 2102d1a2eb6cb9db674fd76aa7aa3192befad733 (diff) | |
download | pacman-c47d25d74be9ce1fbbfb8577687d9f37ba38d98b.tar.gz pacman-c47d25d74be9ce1fbbfb8577687d9f37ba38d98b.tar.xz |
Add handle attribute to pmdb_t struct
This is the first step in a long process to remove our dependence on the
global handle variable we currently share in libalpm, with the goal to
make things a bit more thread-safe and re-entrant.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/be_sync.c')
-rw-r--r-- | lib/libalpm/be_sync.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libalpm/be_sync.c b/lib/libalpm/be_sync.c index 77c9207d..1d633982 100644 --- a/lib/libalpm/be_sync.c +++ b/lib/libalpm/be_sync.c @@ -513,6 +513,7 @@ pmdb_t *_alpm_db_register_sync(const char *treename) RET_ERR(PM_ERR_DB_CREATE, NULL); } db->ops = &sync_db_ops; + db->handle = handle; handle->dbs_sync = alpm_list_add(handle->dbs_sync, db); return db; |