* [PATCH 0/1] bitbake: prserv/serv: sync database after thead quit
@ 2015-01-19 8:48 Chong Lu
2015-01-19 8:48 ` [PATCH 1/1] " Chong Lu
0 siblings, 1 reply; 4+ messages in thread
From: Chong Lu @ 2015-01-19 8:48 UTC (permalink / raw)
To: bitbake-devel
The following changes since commit d9d5b8b499af3ae01a1e33d0d3969c54c2d4ab1b:
depmodwrapper-cross: Update to use STAGING_KERNEL_BUILDDIR (2015-01-17 17:05:45 +0000)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib chonglu/primport
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=chonglu/primport
Chong Lu (1):
bitbake: prserv/serv: sync database after thead quit
bitbake/lib/prserv/serv.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--
1.9.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/1] bitbake: prserv/serv: sync database after thead quit
2015-01-19 8:48 [PATCH 0/1] bitbake: prserv/serv: sync database after thead quit Chong Lu
@ 2015-01-19 8:48 ` Chong Lu
2015-01-21 13:54 ` Richard Purdie
0 siblings, 1 reply; 4+ messages in thread
From: Chong Lu @ 2015-01-19 8:48 UTC (permalink / raw)
To: bitbake-devel
We need sync database after thread quit, else we may get a empty table
after import a PR database.
[YOCTO #6752]
Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
---
bitbake/lib/prserv/serv.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bitbake/lib/prserv/serv.py b/bitbake/lib/prserv/serv.py
index 25eb46a..c774c5e 100644
--- a/bitbake/lib/prserv/serv.py
+++ b/bitbake/lib/prserv/serv.py
@@ -87,7 +87,7 @@ class PRServer(SimpleXMLRPCServer):
self.finish_request(request, client_address)
self.shutdown_request(request)
iter_count = (iter_count + 1) % iterations_between_sync
- if iter_count == 0:
+ if iter_count == 0 or self.quit:
self.table.sync_if_dirty()
except:
self.handle_error(request, client_address)
--
1.9.1
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH 1/1] bitbake: prserv/serv: sync database after thead quit
2015-01-19 8:48 ` [PATCH 1/1] " Chong Lu
@ 2015-01-21 13:54 ` Richard Purdie
2015-01-22 1:36 ` Chong Lu
0 siblings, 1 reply; 4+ messages in thread
From: Richard Purdie @ 2015-01-21 13:54 UTC (permalink / raw)
To: Chong Lu; +Cc: bitbake-devel
On Mon, 2015-01-19 at 16:48 +0800, Chong Lu wrote:
> We need sync database after thread quit, else we may get a empty table
> after import a PR database.
>
> [YOCTO #6752]
>
> Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
> ---
> bitbake/lib/prserv/serv.py | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/bitbake/lib/prserv/serv.py b/bitbake/lib/prserv/serv.py
> index 25eb46a..c774c5e 100644
> --- a/bitbake/lib/prserv/serv.py
> +++ b/bitbake/lib/prserv/serv.py
> @@ -87,7 +87,7 @@ class PRServer(SimpleXMLRPCServer):
> self.finish_request(request, client_address)
> self.shutdown_request(request)
> iter_count = (iter_count + 1) % iterations_between_sync
> - if iter_count == 0:
> + if iter_count == 0 or self.quit:
> self.table.sync_if_dirty()
> except:
> self.handle_error(request, client_address)
Thanks for the patch. I had a look at this problem and I think there are
bigger problems with the code. Can you take a look at the patch I've
just posted, it should solve this issue as well as several others.
Cheers,
Richard
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1] bitbake: prserv/serv: sync database after thead quit
2015-01-21 13:54 ` Richard Purdie
@ 2015-01-22 1:36 ` Chong Lu
0 siblings, 0 replies; 4+ messages in thread
From: Chong Lu @ 2015-01-22 1:36 UTC (permalink / raw)
To: Richard Purdie; +Cc: bitbake-devel
On 01/21/2015 09:54 PM, Richard Purdie wrote:
> On Mon, 2015-01-19 at 16:48 +0800, Chong Lu wrote:
>> We need sync database after thread quit, else we may get a empty table
>> after import a PR database.
>>
>> [YOCTO #6752]
>>
>> Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
>> ---
>> bitbake/lib/prserv/serv.py | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/bitbake/lib/prserv/serv.py b/bitbake/lib/prserv/serv.py
>> index 25eb46a..c774c5e 100644
>> --- a/bitbake/lib/prserv/serv.py
>> +++ b/bitbake/lib/prserv/serv.py
>> @@ -87,7 +87,7 @@ class PRServer(SimpleXMLRPCServer):
>> self.finish_request(request, client_address)
>> self.shutdown_request(request)
>> iter_count = (iter_count + 1) % iterations_between_sync
>> - if iter_count == 0:
>> + if iter_count == 0 or self.quit:
>> self.table.sync_if_dirty()
>> except:
>> self.handle_error(request, client_address)
> Thanks for the patch. I had a look at this problem and I think there are
> bigger problems with the code. Can you take a look at the patch I've
> just posted, it should solve this issue as well as several others.
>
> Cheers,
>
> Richard
>
Hi Richard,
I try your patch in my environment, it can fix [YOCTO #6752].
Thanks for your improve.
Best Regards
Chong
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-01-22 1:36 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-19 8:48 [PATCH 0/1] bitbake: prserv/serv: sync database after thead quit Chong Lu
2015-01-19 8:48 ` [PATCH 1/1] " Chong Lu
2015-01-21 13:54 ` Richard Purdie
2015-01-22 1:36 ` Chong Lu
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.