mirror of
https://github.com/abapGit/abapGit.git
synced 2025-05-01 12:20:51 +08:00
Refresh repository to reduce memory usage in background mode (#6728)
This commit is contained in:
parent
60cf845079
commit
d9eee6ef3e
|
@ -114,7 +114,7 @@ CLASS zcl_abapgit_background IMPLEMENTATION.
|
||||||
TRY.
|
TRY.
|
||||||
enqueue( ).
|
enqueue( ).
|
||||||
CATCH zcx_abapgit_exception.
|
CATCH zcx_abapgit_exception.
|
||||||
WRITE: / 'Another intance of the program is already running'.
|
WRITE: / 'Another instance of the program is already running'.
|
||||||
RETURN.
|
RETURN.
|
||||||
ENDTRY.
|
ENDTRY.
|
||||||
|
|
||||||
|
@ -150,6 +150,13 @@ CLASS zcl_abapgit_background IMPLEMENTATION.
|
||||||
li_log->add_exception( lx_error ).
|
li_log->add_exception( lx_error ).
|
||||||
ENDTRY.
|
ENDTRY.
|
||||||
|
|
||||||
|
TRY.
|
||||||
|
" Decrease memory usage for repositories already processed
|
||||||
|
lo_repo->refresh( abap_true ).
|
||||||
|
CATCH zcx_abapgit_exception INTO lx_error.
|
||||||
|
li_log->add_exception( lx_error ).
|
||||||
|
ENDTRY.
|
||||||
|
|
||||||
zcl_abapgit_log_viewer=>write_log( li_log ).
|
zcl_abapgit_log_viewer=>write_log( li_log ).
|
||||||
ENDLOOP.
|
ENDLOOP.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user